]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
lfs/Config: fix used rootfile for linux headers
authorArne Fitzenreiter <arne_f@ipfire.org>
Wed, 16 Oct 2024 19:33:58 +0000 (21:33 +0200)
committerArne Fitzenreiter <arne_f@ipfire.org>
Wed, 16 Oct 2024 19:33:58 +0000 (21:33 +0200)
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
lfs/Config

index ea78042980f3f4ceb7500b1dc722842b49a479c5..f14f6b63f235e4e202f04310f65c23f47aeb344b 100644 (file)
@@ -282,7 +282,11 @@ define POSTBUILD
        # $(TARGET)_rootfile : ROOTFILE with KVER replacement
        # $(TARGET) : log result with {commented|include|added} files
        @if [ -s "$(TARGET)_diff" ]; then \
-               LFS_SCRIPT=$(firstword $(MAKEFILE_LIST)); \
+               if [ "$(HEADERS)" = "1" ]; then \
+                       LFS_SCRIPT=$(firstword $(MAKEFILE_LIST))-headers ; \
+               else \
+                       LFS_SCRIPT=$(firstword $(MAKEFILE_LIST)); \
+               fi; \
                echo $(LFS_SCRIPT); \
                ROOTFILE=$$(find -L $(DIR_SRC)/config/rootfiles/{common,packages}/{$(BUILD_ARCH),} -maxdepth 1 -type f -name $$LFS_SCRIPT 2>/dev/null | head -1); \
                if [ "$$ROOTFILE" = "" ]; then \