Add MPPE/MPPC kernel module
[openwrt.git] / openwrt / package / Makefile.in
1 MAKE1=make
2 MAKE=make -j$(BR2_JLEVEL)
3
4 # Strip off the annoying quoting
5 ARCH:=$(strip $(subst ",, $(BR2_ARCH)))
6 #"
7 WGET:=$(strip $(subst ",, $(BR2_WGET)))
8 #"
9
10 ifneq ($(BR2_LARGEFILE),y)
11 DISABLE_LARGEFILE= --disable-largefile
12 endif
13 TARGET_CFLAGS=$(TARGET_OPTIMIZATION) $(TARGET_DEBUGGING)
14
15 HOSTCC:=gcc
16 BASE_DIR:=${shell pwd}
17 DL_DIR:=$(BASE_DIR)/dl
18 BUILD_DIR:=$(BASE_DIR)/build_$(ARCH)$(ARCH_FPU_SUFFIX)
19 PACKAGE_DIR:=$(BASE_DIR)/package
20 TARGET_DIR:=$(BUILD_DIR)/root
21 TOOL_BUILD_DIR=$(BASE_DIR)/toolchain_build_$(ARCH)$(ARCH_FPU_SUFFIX)
22 # Strip off the annoying quoting
23 STAGING_DIR:=$(strip $(subst ",, $(BR2_STAGING_DIR)))
24 #"
25 TARGET_PATH=$(STAGING_DIR)/bin:/bin:/sbin:/usr/bin:/usr/sbin
26 IMAGE:=$(BASE_DIR)/root_fs_$(ARCH)$(ARCH_FPU_SUFFIX)
27 REAL_GNU_TARGET_NAME=$(OPTIMIZE_FOR_CPU)-linux-uclibc
28 GNU_TARGET_NAME=$(OPTIMIZE_FOR_CPU)-linux
29 KERNEL_CROSS=$(STAGING_DIR)/bin/$(OPTIMIZE_FOR_CPU)-linux-uclibc-
30 TARGET_CROSS=$(STAGING_DIR)/bin/$(OPTIMIZE_FOR_CPU)-linux-uclibc-
31 TARGET_CC=$(TARGET_CROSS)gcc
32 STRIP=$(TARGET_CROSS)strip --remove-section=.comment --remove-section=.note
33 PATCH=toolchain/patch-kernel.sh
34
35
36 HOST_ARCH:=$(shell $(HOSTCC) -dumpmachine | sed -e s'/-.*//' \
37 -e 's/sparc.*/sparc/' \
38 -e 's/arm.*/arm/g' \
39 -e 's/m68k.*/m68k/' \
40 -e 's/ppc/powerpc/g' \
41 -e 's/v850.*/v850/g' \
42 -e 's/sh[234]/sh/' \
43 -e 's/mips-.*/mips/' \
44 -e 's/mipsel-.*/mipsel/' \
45 -e 's/cris.*/cris/' \
46 -e 's/i[3-9]86/i386/' \
47 )
48 GNU_HOST_NAME:=$(HOST_ARCH)-pc-linux-gnu
49 TARGET_CONFIGURE_OPTS=PATH=$(TARGET_PATH) \
50 AR=$(TARGET_CROSS)ar \
51 AS=$(TARGET_CROSS)as \
52 LD=$(TARGET_CROSS)ld \
53 NM=$(TARGET_CROSS)nm \
54 CC=$(TARGET_CROSS)gcc \
55 GCC=$(TARGET_CROSS)gcc \
56 CXX=$(TARGET_CROSS)g++ \
57 RANLIB=$(TARGET_CROSS)ranlib
58
59 ifeq ($(ENABLE_LOCALE),true)
60 DISABLE_NLS:=
61 else
62 DISABLE_NLS:=--disable-nls
63 endif
64
65
This page took 0.044143 seconds and 5 git commands to generate.