summaryrefslogtreecommitdiff
path: root/sys-kernel/linux-image-redcore-lts/files/6.6-fix-bootconfig-makefile.patch
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-12-17 18:45:36 +0000
committerV3n3RiX <venerix@koprulu.sector>2023-12-17 18:45:36 +0000
commit67071ac86b08a6f826153b4c95b07d7ba789b28e (patch)
tree6c540ca985008e5c79e2b2fe2f619be9b0240ce9 /sys-kernel/linux-image-redcore-lts/files/6.6-fix-bootconfig-makefile.patch
parent15c3fc2a40a699512a1334df4d40ba25f9bba2b4 (diff)
sys-kernel/linux-{image,sources}-redcore-lts : add kernel v6.6.x
Diffstat (limited to 'sys-kernel/linux-image-redcore-lts/files/6.6-fix-bootconfig-makefile.patch')
-rw-r--r--sys-kernel/linux-image-redcore-lts/files/6.6-fix-bootconfig-makefile.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/sys-kernel/linux-image-redcore-lts/files/6.6-fix-bootconfig-makefile.patch b/sys-kernel/linux-image-redcore-lts/files/6.6-fix-bootconfig-makefile.patch
new file mode 100644
index 00000000..4399ecda
--- /dev/null
+++ b/sys-kernel/linux-image-redcore-lts/files/6.6-fix-bootconfig-makefile.patch
@@ -0,0 +1,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)