summaryrefslogtreecommitdiff
path: root/sys-kernel/linux-sources-redcore/files/6.8-fix-bootconfig-makefile.patch
blob: 4399ecda004caced2e110e56f55cf7f89aba0765 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
--- linux-5.7/tools/bootconfig/Makefile	2020-06-01 01:49:15.000000000 +0200
+++ linux-5.7.new/tools/bootconfig/Makefile	2020-06-02 09:20:09.827274106 +0200
@@ -2,7 +2,7 @@
 # Makefile for bootconfig command
 include ../scripts/Makefile.include
 
-bindir ?= /usr/bin
+sbindir ?= /usr/sbin
 
 ifeq ($(srctree),)
 srctree := $(patsubst %/,%,$(dir $(CURDIR)))
@@ -10,7 +10,7 @@
 endif
 
 LIBSRC = $(srctree)/lib/bootconfig.c $(srctree)/include/linux/bootconfig.h
-CFLAGS = -Wall -g -I$(CURDIR)/include
+CFLAGS += -Wall -g -I$(CURDIR)/include
 
 ALL_TARGETS := bootconfig
 ALL_PROGRAMS := $(patsubst %,$(OUTPUT)%,$(ALL_TARGETS))
@@ -24,7 +24,7 @@
 	./test-bootconfig.sh $(OUTPUT)
 
 install: $(ALL_PROGRAMS)
-	install $(OUTPUT)bootconfig $(DESTDIR)$(bindir)
-
+	mkdir -p $(DESTDIR)$(sbindir)
+	install -m 0755 bootconfig $(DESTDIR)$(sbindir)
 clean:
 	$(RM) -f $(OUTPUT)*.o $(ALL_PROGRAMS)