diff options
author | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2014-09-14 11:50:03 +0200 |
---|---|---|
committer | Peter Korsgaard <peter@korsgaard.com> | 2014-09-14 23:21:37 +0200 |
commit | 841185df93e2214e0ec943916918063220640e95 (patch) | |
tree | d7d130f7c62c39b996b81d73a7e51577252253ab | |
parent | 08d34dfa1566af5999d0334f5a2530965de934c0 (diff) | |
download | buildroot-841185df93e2214e0ec943916918063220640e95.tar.gz buildroot-841185df93e2214e0ec943916918063220640e95.zip |
uclibc: two-stage gcc simplifications
After switching to a two stage gcc solution, there is no longer a need
to do weird things in the uclibc build. We can greatly simplify
UCLIBC_CONFIGURE_CMDS to only do the configuration, and let the
existing UCLIBC_BUILD_CMDS do the build. Note that we have to build
the headers before starting the C library build, otherwise there is a
build failure (probably a uClibc bug).
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r-- | package/uclibc/uclibc.mk | 22 |
1 files changed, 2 insertions, 20 deletions
diff --git a/package/uclibc/uclibc.mk b/package/uclibc/uclibc.mk index 31ff47b3e0..5933973655 100644 --- a/package/uclibc/uclibc.mk +++ b/package/uclibc/uclibc.mk @@ -433,20 +433,6 @@ define UCLIBC_KCONFIG_FIXUP_CMDS $(UCLIBC_STRIP_CONFIG) endef -define UCLIBC_CONFIGURE_CMDS - $(MAKE1) -C $(UCLIBC_DIR) \ - $(UCLIBC_MAKE_FLAGS) \ - PREFIX=$(STAGING_DIR) \ - DEVEL_PREFIX=/usr/ \ - RUNTIME_PREFIX=$(STAGING_DIR) \ - headers startfiles \ - install_headers install_startfiles - $(TARGET_CROSS)gcc -nostdlib \ - -nostartfiles -shared -x c /dev/null -o $(STAGING_DIR)/usr/lib/libc.so - $(TARGET_CROSS)gcc -nostdlib \ - -nostartfiles -shared -x c /dev/null -o $(STAGING_DIR)/usr/lib/libm.so -endef - ifeq ($(BR2_UCLIBC_INSTALL_TEST_SUITE),y) define UCLIBC_BUILD_TEST_SUITE $(MAKE1) -C $(@D)/test \ @@ -471,12 +457,8 @@ else endif define UCLIBC_BUILD_CMDS - $(UCLIBC_MAKE) -C $(@D) \ - $(UCLIBC_MAKE_FLAGS) \ - PREFIX= \ - DEVEL_PREFIX=/ \ - RUNTIME_PREFIX=/ \ - all + $(UCLIBC_MAKE) -C $(@D) $(UCLIBC_MAKE_FLAGS) headers + $(UCLIBC_MAKE) -C $(@D) $(UCLIBC_MAKE_FLAGS) $(MAKE) -C $(@D)/utils \ PREFIX=$(HOST_DIR) \ HOSTCC="$(HOSTCC)" hostutils |