kconfig/Makefile
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Tue May 08 17:48:32 2007 +0000 (2007-05-08)
changeset 78 c3868084d81a
parent 54 7498a8d4b6e5
child 88 f67b52e42fd1
permissions -rw-r--r--
Huge fixes to glibc build, so that we can build at least (and at last):
- use ports addon even when installing headers,
- use optimisation (-O) when installing headers, to avoid unnecessary warnings (thanks Robert P. J. DAY for pointing this out!),
- lowest kernel version to use is only X.Y.Z, not X.Y.Z.T,
- a bit of preparations for NPTL (RSN I hope),
- fix fixing the linker scripts (changing the backup file is kind of useless and stupid);

Shut uClibc finish step: there really is nothing to do;

Add a patch for glibc-2.3.6 weak aliases handling on some archs (ARM and ALPHA at least);

Did not catch the make errors: fixed the pattern matching in scripts/functions;

Introduce a new log level, ALL:
- send components' build messages there,
- DEBUG log level is destined only for crosstool-NG debug messages,
- migrate sub-actions to use appropriate log levels;

Update the armeb-unknown-linux-gnu sample:
- it builds!
- uses gcc-4.0.4 and glibc-2.3.6,
- updated to latest config options set.
yann@1
     1
# ===========================================================================
yann@1
     2
# crosstool-ng configuration targets
yann@1
     3
# These targets are used from top-level makefile
yann@1
     4
yann@1
     5
KCONFIG_TOP = config/config.in
yann@1
     6
obj = ./kconfig
yann@1
     7
PHONY += clean help oldconfig menuconfig config silentoldconfig \
yann@1
     8
	randconfig allyesconfig allnoconfig allmodconfig defconfig
yann@1
     9
yann@19
    10
# Darwin (MacOS-X) does not have proper libintl support
yann@19
    11
ifeq ($(shell uname -s),Darwin)
yann@19
    12
KBUILD_NO_NLS:=1
yann@19
    13
endif
yann@19
    14
yann@18
    15
ifneq ($(KBUILD_NO_NLS),)
yann@18
    16
CFLAGS += -DKBUILD_NO_NLS
yann@18
    17
endif
yann@18
    18
yann@1
    19
menuconfig: $(obj)/mconf
yann@1
    20
	@$< $(KCONFIG_TOP)
yann@1
    21
yann@1
    22
config: $(obj)/conf
yann@1
    23
	@$< $(KCONFIG_TOP)
yann@1
    24
yann@1
    25
oldconfig: $(obj)/conf
yann@1
    26
	@$< -s $(KCONFIG_TOP)
yann@1
    27
yann@1
    28
# Help text used by make help
yann@1
    29
help::
yann@1
    30
	@echo  'General purpose configuration targets:'
yann@19
    31
	@echo  '  config         - Update current config using a line-oriented program'
yann@19
    32
	@echo  '  menuconfig     - Update current config using a menu based program'
yann@19
    33
	@echo  '  oldconfig      - Update current config using a provided .config as base'
yann@63
    34
	@# saveconfig is listed here for homogeneity, but implemented in samples/Makefile
yann@63
    35
	@echo  '  saveconfig     - Save current config as a preconfigured target'
yann@1
    36
	@echo  ''
yann@1
    37
yann@1
    38
# Cheesy build
yann@1
    39
yann@1
    40
SHIPPED = kconfig/zconf.tab.c kconfig/lex.zconf.c kconfig/zconf.hash.c
yann@1
    41
yann@1
    42
%.c: %.c_shipped
yann@1
    43
	@ln -s $(notdir $<) $@
yann@1
    44
yann@1
    45
kconfig/mconf: $(SHIPPED) kconfig/mconf.c
yann@18
    46
	@$(HOST_CC) $(CFLAGS) -o $@ kconfig/{mconf.c,zconf.tab.c,lxdialog/*.c} \
yann@1
    47
		-lcurses "-DCURSES_LOC=<ncurses.h>"
yann@1
    48
yann@1
    49
kconfig/conf: $(SHIPPED) kconfig/conf.c
yann@18
    50
	@$(HOST_CC) $(CFLAGS) -o $@ kconfig/{conf.c,zconf.tab.c}
yann@1
    51
yann@1
    52
clean::
yann@1
    53
	@rm -f $(wildcard kconfig/*zconf*.c) kconfig/{conf,mconf}