]> Git Repo - buildroot-mgba.git/blob - package/Makefile.in
Fix bzip2 cross build error associated with host ranlib being
[buildroot-mgba.git] / 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 SVN:=$(strip $(subst ",, $(BR2_SVN)))
10 #"
11
12
13
14 ifneq ($(BR2_LARGEFILE),y)
15 DISABLE_LARGEFILE= --disable-largefile
16 endif
17 TARGET_CFLAGS=$(TARGET_OPTIMIZATION) $(TARGET_DEBUGGING)
18
19 HOSTCC:=gcc
20 BASE_DIR:=${shell pwd}
21 DL_DIR:=$(BASE_DIR)/dl
22 #PATCH_DIR=$(BASE_DIR)/sources/patches
23 BUILD_DIR:=$(BASE_DIR)/build_$(ARCH)$(ARCH_FPU_SUFFIX)
24 TARGET_DIR:=$(BUILD_DIR)/root
25 TOOL_BUILD_DIR=$(BASE_DIR)/toolchain_build_$(ARCH)$(ARCH_FPU_SUFFIX)
26 # Strip off the annoying quoting
27 STAGING_DIR:=$(strip $(subst ",, $(BR2_STAGING_DIR)))
28 #"
29 TARGET_PATH=$(STAGING_DIR)/bin:/bin:/sbin:/usr/bin:/usr/sbin
30 IMAGE:=$(BASE_DIR)/root_fs_$(ARCH)$(ARCH_FPU_SUFFIX)
31 REAL_GNU_TARGET_NAME=$(OPTIMIZE_FOR_CPU)-linux-uclibc
32 GNU_TARGET_NAME=$(OPTIMIZE_FOR_CPU)-linux
33 KERNEL_CROSS=$(STAGING_DIR)/bin/$(OPTIMIZE_FOR_CPU)-linux-uclibc-
34 TARGET_CROSS=$(STAGING_DIR)/bin/$(OPTIMIZE_FOR_CPU)-linux-uclibc-
35 TARGET_CC=$(TARGET_CROSS)gcc
36 TARGET_RANLIB=$(TARGET_CROSS)ranlib
37 STRIP=$(TARGET_CROSS)strip --remove-section=.comment --remove-section=.note
38 INSTALL=/usr/bin/install
39
40
41 HOST_ARCH:=$(shell $(HOSTCC) -dumpmachine | sed -e s'/-.*//' \
42         -e 's/sparc.*/sparc/' \
43         -e 's/arm.*/arm/g' \
44         -e 's/m68k.*/m68k/' \
45         -e 's/ppc/powerpc/g' \
46         -e 's/v850.*/v850/g' \
47         -e 's/sh[234]/sh/' \
48         -e 's/mips-.*/mips/' \
49         -e 's/mipsel-.*/mipsel/' \
50         -e 's/cris.*/cris/' \
51         -e 's/i[3-9]86/i386/' \
52         )
53 GNU_HOST_NAME:=$(HOST_ARCH)-pc-linux-gnu
54 TARGET_CONFIGURE_OPTS=PATH=$(TARGET_PATH) \
55                 AR=$(TARGET_CROSS)ar \
56                 AS=$(TARGET_CROSS)as \
57                 LD=$(TARGET_CROSS)ld \
58                 NM=$(TARGET_CROSS)nm \
59                 CC=$(TARGET_CROSS)gcc \
60                 GCC=$(TARGET_CROSS)gcc \
61                 CXX=$(TARGET_CROSS)g++ \
62                 RANLIB=$(TARGET_CROSS)ranlib \
63                 OBJCOPY=$(TARGET_CROSS)objcopy
64
65 ifeq ($(ENABLE_LOCALE),true)
66 DISABLE_NLS:=
67 else
68 DISABLE_NLS:=--disable-nls
69 endif
70
71
This page took 0.02783 seconds and 4 git commands to generate.