Linux kernel headers install does not need the kernel to be configured. Dropping this unneccessary step.
1 # ===========================================================================
2 # crosstool-ng configuration targets
3 # These targets are used from top-level makefile
5 KCONFIG_TOP = config/config.in
7 PHONY += clean help oldconfig menuconfig config silentoldconfig \
8 randconfig allyesconfig allnoconfig allmodconfig defconfig
10 # Darwin (MacOS-X) does not have proper libintl support
11 ifeq ($(shell uname -s),Darwin)
15 ifneq ($(KBUILD_NO_NLS),)
16 CFLAGS += -DKBUILD_NO_NLS
19 menuconfig: $(obj)/mconf
25 oldconfig: $(obj)/conf
28 # Build a list of all available samples
29 SAMPLES = $(patsubst $(CT_TOP_DIR)/samples/%,%,$(filter-out %Makefile,$(wildcard $(CT_TOP_DIR)/samples/*)))
32 @cp "$(CT_TOP_DIR)/samples/$(@)/crosstool.config" "$(CT_TOP_DIR)/.config"
35 # Help text used by make help
37 @echo 'General purpose configuration targets:'
38 @echo ' config - Update current config using a line-oriented program'
39 @echo ' menuconfig - Update current config using a menu based program'
40 @echo ' oldconfig - Update current config using a provided .config as base'
42 @echo 'Preconfigured targets:'
43 @for s in $(SAMPLES); do \
50 SHIPPED = kconfig/zconf.tab.c kconfig/lex.zconf.c kconfig/zconf.hash.c
53 @ln -s $(notdir $<) $@
55 kconfig/mconf: $(SHIPPED) kconfig/mconf.c
56 @$(HOST_CC) $(CFLAGS) -o $@ kconfig/{mconf.c,zconf.tab.c,lxdialog/*.c} \
57 -lcurses "-DCURSES_LOC=<ncurses.h>"
59 kconfig/conf: $(SHIPPED) kconfig/conf.c
60 @$(HOST_CC) $(CFLAGS) -o $@ kconfig/{conf.c,zconf.tab.c}
63 @rm -f $(wildcard kconfig/*zconf*.c) kconfig/{conf,mconf}