diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 16 |
1 files changed, 13 insertions, 3 deletions
@@ -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: |