TOOLS_CC:=gcc TOOLS_CXX:=g++ TOOLS_CFLAGS:=-Wall -O2 TOOLS_CXXFLAGS:=-Wall -O2 TOOLS_LDFLAGS:= # bitness of the build system (also the host system) # heuristic: if "uname -m" contains 64 then it's a 64-bit system, 32-bit otherwise HOST_BITNESS:=$(if $(findstring 64,$(shell uname -m)),64,32) # on 32-bit systems no special CFLAGS are required, on all other systems use -m32 [ and hope it's supported :-) aarch64 does not :{ ] HOST_CFLAGS_FORCE_32BIT_CODE:=$(if $(filter-out 32,$(HOST_BITNESS)),-m32) TOOLS_SOURCE_DIR:=$(FREETZ_BASE_DIR)/source/host-tools HOST_TOOLS_DIR:=$(FREETZ_BASE_DIR)/$(TOOLS_BUILD_DIR) $(TOOLS_SOURCE_DIR) $(HOST_TOOLS_DIR): @mkdir -p $@ TOOLS:=$(sort $(basename $(notdir $(wildcard $(TOOLS_DIR)/make/*/*.mk)))) # tools not built by default ifneq ($(strip $(FREETZ_ROOTEMU_FAKEROOT)),y) TOOLS_CONDITIONAL+=fakeroot-host endif TOOLS_CONDITIONAL+=gmp-host TOOLS_CONDITIONAL+=mpc-host TOOLS_CONDITIONAL+=mpfr-host ifneq ($(strip $(FREETZ_STRIP_LIBRARIES)),y) TOOLS_CONDITIONAL+=mklibs-host endif ifneq ($(strip $(FREETZ_SHARE_terminfo)),y) TOOLS_CONDITIONAL+=ncurses-host endif ifneq ($(strip $(FREETZ_ROOTEMU_PSEUDO)),y) TOOLS_CONDITIONAL+=pseudo-host endif TOOLS_CONDITIONAL+=python-host TOOLS_CONDITIONAL+=scons-host TOOLS_CONDITIONAL+=tools-host TOOLS_CONDITIONAL+=xdelta-host ifneq ($(strip $(FREETZ_PATCH_MODFS_BOOT_MANAGER)),y) TOOLS_CONDITIONAL+=yf-bootmanager-host endif ifneq ($(strip $(FREETZ_TYPE_FIRMWARE_DETECT_LATEST)),y) TOOLS_CONDITIONAL+=yf-juis-host endif ifneq ($(strip $(FREETZ_FWMOD_VALIDATE_METHOD_SI)),y) ifneq ($(strip $(FREETZ_FWMOD_SIGN_METHOD_SI)),y) TOOLS_CONDITIONAL+=yf-signimage-host endif endif # tools not in dl-archive TOOLS_BUILD_LOCAL+=gmp-host TOOLS_BUILD_LOCAL+=kconfig-host TOOLS_BUILD_LOCAL+=mpc-host TOOLS_BUILD_LOCAL+=mpfr-host TOOLS_BUILD_LOCAL+=scons-host TOOLS_BUILD_LOCAL+=tools-host # until next host-tools update #TOOLS_BUILD_LOCAL+=...