From: Arne Fitzenreiter Date: Wed, 16 Oct 2024 19:33:58 +0000 (+0200) Subject: lfs/Config: fix used rootfile for linux headers X-Git-Tag: v2.29-core190~53 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=16fd55e550bde546ebc50dee25e8a3897d6211ce;p=ipfire-2.x.git lfs/Config: fix used rootfile for linux headers Signed-off-by: Arne Fitzenreiter --- diff --git a/lfs/Config b/lfs/Config index ea78042980..f14f6b63f2 100644 --- a/lfs/Config +++ b/lfs/Config @@ -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 \