From f944f887470713b737cfe0bd704fd4c97318754b Mon Sep 17 00:00:00 2001 From: aqua Date: Tue, 1 Nov 2022 15:20:17 +0200 Subject: makefile: add Makefile.config --- Makefile | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index aa6965e..ca76f48 100644 --- a/Makefile +++ b/Makefile @@ -1,14 +1,24 @@ MAKE = make MAKEFLAGS += --no-print-directory -ARCH = i686 -include ${ARCH}/toolchain.mk + +-include Makefile.config info: - @echo "this is the all target" + @echo "* Build information *" @echo " ARCH ${ARCH}" @echo " MAKE $(shell ${MAKE} --version | head -n1)" @echo " CC $(shell ${CC} --version | head -n1)" + @echo " ${CCFLAGS}" @echo " LD $(shell ${LD} --version | head -n1)" + @echo " ${LDFLAGS}" + +.config: Kconfig + @alldefconfig + +Makefile.config: .config + @cp .config Makefile.config + @echo -e '\n# toolchain.mk' >> Makefile.config + @cat $$(sed -nE "s/CONFIG_ARCH_(.+)=y/\1/p" .config)/toolchain.mk >> Makefile.config .PHONY: all run clean purge all: -- cgit v1.2.1