mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
Config: add ROOTFILE_APPEND variable to select rootfile
also gcc on riscv64 has to different rootfile at build so make the selection of an additional rootfile univarsal. Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
@@ -282,11 +282,7 @@ define POSTBUILD
|
||||
# $(TARGET)_rootfile : ROOTFILE with KVER replacement
|
||||
# $(TARGET) : log result with {commented|include|added} files
|
||||
@if [ -s "$(TARGET)_diff" ]; then \
|
||||
if [ "$(HEADERS)" = "1" ]; then \
|
||||
LFS_SCRIPT=$(firstword $(MAKEFILE_LIST))-headers ; \
|
||||
else \
|
||||
LFS_SCRIPT=$(firstword $(MAKEFILE_LIST)); \
|
||||
fi; \
|
||||
LFS_SCRIPT=$(firstword $(MAKEFILE_LIST))${ROOTFILE_APPEND} ; \
|
||||
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 \
|
||||
|
||||
1
lfs/gcc
1
lfs/gcc
@@ -69,6 +69,7 @@ ifeq "$(ROOT)" ""
|
||||
EXTRA_INSTALL =
|
||||
ifeq "$(PASS)" "A"
|
||||
TARGET = $(DIR_INFO)/$(THISAPP)-libatomic
|
||||
ROOTFILE_APPEND = "-libatomic"
|
||||
endif
|
||||
else
|
||||
ifeq "$(PASS)" "1"
|
||||
|
||||
Reference in New Issue
Block a user