[make][buildall] add ability to filter buildall by architecture
Clean up make targets list-arch and list-toolchain to be much faster and work without needing to invoke the archtecture's arch rules.mk. This should make it work on machines that do not have that particular toolchain in the path. This is setting up for using it in the github action script.
This commit is contained in:
@@ -332,7 +332,6 @@ endif
|
||||
# try to find toolchain
|
||||
include $(LOCAL_DIR)/toolchain.mk
|
||||
TOOLCHAIN_PREFIX := $(ARCH_$(ARCH)_TOOLCHAIN_PREFIX)
|
||||
$(info TOOLCHAIN_PREFIX = $(TOOLCHAIN_PREFIX))
|
||||
|
||||
ARCH_COMPILEFLAGS += $(ARCH_$(ARCH)_COMPILEFLAGS)
|
||||
ARCH_COMPILEFLAGS_NOFLOAT :=
|
||||
|
||||
@@ -4,7 +4,6 @@ ARCH_arm_TOOLCHAIN_INCLUDED := 1
|
||||
# try to find the toolchain
|
||||
ifndef ARCH_arm_TOOLCHAIN_PREFIX
|
||||
|
||||
$(info $(TOOLCHAIN_PREFIX))
|
||||
# if TOOLCHAIN_PREFIX is not empty, try to use it first
|
||||
ifneq ($(TOOLCHAIN_PREFIX),)
|
||||
ARCH_arm_TOOLCHAIN_PREFIX := $(TOOLCHAIN_PREFIX)
|
||||
|
||||
@@ -89,7 +89,6 @@ GLOBAL_DEFINES += \
|
||||
# try to find the toolchain
|
||||
include $(LOCAL_DIR)/toolchain.mk
|
||||
TOOLCHAIN_PREFIX := $(ARCH_$(ARCH)_TOOLCHAIN_PREFIX)
|
||||
$(info TOOLCHAIN_PREFIX = $(TOOLCHAIN_PREFIX))
|
||||
|
||||
ARCH_COMPILEFLAGS += $(ARCH_$(ARCH)_COMPILEFLAGS)
|
||||
ARCH_COMPILEFLAGS += -fno-omit-frame-pointer
|
||||
|
||||
@@ -106,9 +106,9 @@ TOOLCHAIN_PREFIX := $(ARCH_x86_64_TOOLCHAIN_PREFIX)
|
||||
endif
|
||||
endif # SUBARCH x86-64
|
||||
|
||||
$(warning ARCH_x86_TOOLCHAIN_PREFIX = $(ARCH_x86_TOOLCHAIN_PREFIX))
|
||||
$(warning ARCH_x86_64_TOOLCHAIN_PREFIX = $(ARCH_x86_64_TOOLCHAIN_PREFIX))
|
||||
$(warning TOOLCHAIN_PREFIX = $(TOOLCHAIN_PREFIX))
|
||||
$(info ARCH_x86_TOOLCHAIN_PREFIX = $(ARCH_x86_TOOLCHAIN_PREFIX))
|
||||
$(info ARCH_x86_64_TOOLCHAIN_PREFIX = $(ARCH_x86_64_TOOLCHAIN_PREFIX))
|
||||
$(info TOOLCHAIN_PREFIX = $(TOOLCHAIN_PREFIX))
|
||||
|
||||
cc-option = $(shell if test -z "`$(1) $(2) -S -o /dev/null -xc /dev/null 2>&1`"; \
|
||||
then echo "$(2)"; else echo "$(3)"; fi ;)
|
||||
@@ -148,8 +148,6 @@ GLOBAL_DEFINES += X86_LEGACY=0
|
||||
endif
|
||||
|
||||
LIBGCC := $(shell $(TOOLCHAIN_PREFIX)gcc $(GLOBAL_COMPILEFLAGS) $(ARCH_COMPILEFLAGS) -print-libgcc-file-name)
|
||||
$(warning LIBGCC = $(LIBGCC))
|
||||
|
||||
LINKER_SCRIPT += $(SUBARCH_BUILDDIR)/kernel.ld
|
||||
|
||||
# potentially generated files that should be cleaned out with clean make rule
|
||||
|
||||
Reference in New Issue
Block a user