Update to uClibc 0.9.15. decouple kernel, toolchain, and uClibc.
-Erik
This commit is contained in:
parent
c75e4a1f62
commit
f952c942fb
4
Makefile
4
Makefile
@ -39,7 +39,7 @@ USE_UCLIBC_TOOLCHAIN:=false
|
|||||||
# Enable this to use the uClibc daily snapshot instead of a released
|
# Enable this to use the uClibc daily snapshot instead of a released
|
||||||
# version. Daily snapshots may contain new features and bugfixes. Or
|
# version. Daily snapshots may contain new features and bugfixes. Or
|
||||||
# they may not even compile at all, depending on what Erik is doing...
|
# they may not even compile at all, depending on what Erik is doing...
|
||||||
USE_UCLIBC_SNAPSHOT:=true
|
USE_UCLIBC_SNAPSHOT:=false
|
||||||
|
|
||||||
# Enable this to use the busybox daily snapshot instead of a released
|
# Enable this to use the busybox daily snapshot instead of a released
|
||||||
# version. Daily snapshots may contain new features and bugfixes. Or
|
# version. Daily snapshots may contain new features and bugfixes. Or
|
||||||
@ -58,7 +58,7 @@ ifeq ($(USE_UCLIBC_TOOLCHAIN),true)
|
|||||||
TARGETS=uclibc_toolchain
|
TARGETS=uclibc_toolchain
|
||||||
endif
|
endif
|
||||||
|
|
||||||
TARGETS+=user-mode-linux busybox tinylogin #ncurses gdb strace valgrind
|
TARGETS+=user-mode-linux busybox tinylogin ncurses gdb strace valgrind db
|
||||||
|
|
||||||
# Pick your root filesystem type.
|
# Pick your root filesystem type.
|
||||||
TARGETS+=ext2root
|
TARGETS+=ext2root
|
||||||
|
@ -29,8 +29,8 @@ UCLIBC_DIR=$(BUILD_DIR)/uClibc
|
|||||||
UCLIBC_SOURCE=uClibc-snapshot.tar.bz2
|
UCLIBC_SOURCE=uClibc-snapshot.tar.bz2
|
||||||
UCLIBC_SITE:=ftp://www.uclibc.org/uClibc
|
UCLIBC_SITE:=ftp://www.uclibc.org/uClibc
|
||||||
else
|
else
|
||||||
UCLIBC_DIR:=$(BUILD_DIR)/uClibc-0.9.14
|
UCLIBC_DIR:=$(BUILD_DIR)/uClibc-0.9.15
|
||||||
UCLIBC_SOURCE:=uClibc-0.9.14.tar.bz2
|
UCLIBC_SOURCE:=uClibc-0.9.15.tar.bz2
|
||||||
UCLIBC_SITE:=http://www.kernel.org/pub/linux/libs/uclibc
|
UCLIBC_SITE:=http://www.kernel.org/pub/linux/libs/uclibc
|
||||||
endif
|
endif
|
||||||
#UCLIBC_PATCH=$(SOURCE_DIR)/uClibc.patch
|
#UCLIBC_PATCH=$(SOURCE_DIR)/uClibc.patch
|
||||||
@ -66,7 +66,6 @@ $(UCLIBC_DIR)/Config: $(UCLIBC_DIR)/.unpacked
|
|||||||
--kernel_dir=$(LINUX_DIR) \
|
--kernel_dir=$(LINUX_DIR) \
|
||||||
--float=true \
|
--float=true \
|
||||||
--c99_math=true \
|
--c99_math=true \
|
||||||
--long_long=true \
|
|
||||||
--float=true \
|
--float=true \
|
||||||
--shadow=true \
|
--shadow=true \
|
||||||
--threads=true \
|
--threads=true \
|
||||||
|
@ -33,10 +33,6 @@ HOSTCC:=gcc
|
|||||||
HAS_MMU:=true
|
HAS_MMU:=true
|
||||||
|
|
||||||
|
|
||||||
# Enable this to use the uClibc daily snapshot instead of a released
|
|
||||||
# version. Daily snapshots may contain new features and bugfixes. Or
|
|
||||||
# they may not even compile at all, depending on what Erik is doing...
|
|
||||||
USE_UCLIBC_SNAPSHOT:=true
|
|
||||||
#############################################################
|
#############################################################
|
||||||
#
|
#
|
||||||
# You should probably leave this stuff alone unless you are
|
# You should probably leave this stuff alone unless you are
|
||||||
@ -56,11 +52,11 @@ NATIVE_ARCH:= ${shell uname -m | sed \
|
|||||||
-e 's/sh[234].*/sh/' \
|
-e 's/sh[234].*/sh/' \
|
||||||
-e 's/mips.*/mips/' \
|
-e 's/mips.*/mips/' \
|
||||||
}
|
}
|
||||||
ifeq ($(strip $(ARCH)),$(strip $(NATIVE_ARCH)))
|
#ifeq ($(strip $(ARCH)),$(strip $(NATIVE_ARCH)))
|
||||||
CROSSARG=
|
#CROSSARG=
|
||||||
else
|
#else
|
||||||
CROSSARG=--cross=$(STAGING_DIR)/bin/$(ARCH)-uclibc-
|
CROSSARG=--cross=$(STAGING_DIR)/bin/$(ARCH)-uclibc-
|
||||||
endif
|
#endif
|
||||||
ifneq ($(HAS_MMU),true)
|
ifneq ($(HAS_MMU),true)
|
||||||
NOMMU:=nommu
|
NOMMU:=nommu
|
||||||
endif
|
endif
|
||||||
@ -84,14 +80,14 @@ UCLIBC_DIR=$(BUILD_DIR)/uClibc
|
|||||||
UCLIBC_SOURCE=uClibc-snapshot.tar.bz2
|
UCLIBC_SOURCE=uClibc-snapshot.tar.bz2
|
||||||
UCLIBC_SITE:=ftp://www.uclibc.org/uClibc
|
UCLIBC_SITE:=ftp://www.uclibc.org/uClibc
|
||||||
else
|
else
|
||||||
UCLIBC_DIR:=$(BUILD_DIR)/uClibc-0.9.14
|
UCLIBC_DIR:=$(BUILD_DIR)/uClibc-0.9.15
|
||||||
UCLIBC_SOURCE:=uClibc-0.9.14.tar.bz2
|
UCLIBC_SOURCE:=uClibc-0.9.15.tar.bz2
|
||||||
UCLIBC_SITE:=http://www.kernel.org/pub/linux/libs/uclibc
|
UCLIBC_SITE:=http://www.kernel.org/pub/linux/libs/uclibc
|
||||||
endif
|
endif
|
||||||
|
|
||||||
GCC_SITE:=ftp://ftp.gnu.org/gnu/gcc/
|
GCC_SITE:=ftp://ftp.gnu.org/gnu/gcc/
|
||||||
GCC_SOURCE:=gcc-3.1.1.tar.gz
|
GCC_SOURCE:=gcc-3.2.tar.gz
|
||||||
GCC_DIR:=$(BUILD_DIR)/gcc-3.1.1
|
GCC_DIR:=$(BUILD_DIR)/gcc-3.2
|
||||||
GCC_BUILD_DIR1:=$(BUILD_DIR)/gcc-initial
|
GCC_BUILD_DIR1:=$(BUILD_DIR)/gcc-initial
|
||||||
GCC_BUILD_DIR2:=$(BUILD_DIR)/gcc-final
|
GCC_BUILD_DIR2:=$(BUILD_DIR)/gcc-final
|
||||||
|
|
||||||
@ -122,7 +118,7 @@ $(BUILD_DIR)/.setup:
|
|||||||
# Setup some initial stuff
|
# Setup some initial stuff
|
||||||
#
|
#
|
||||||
#############################################################
|
#############################################################
|
||||||
uclibc_toolchain: gcc_final
|
uclibc_toolchain: uclibc gcc_final
|
||||||
|
|
||||||
uclibc_toolchain-clean: gcc_final-clean uclibc-clean gcc_initial-clean binutils-clean
|
uclibc_toolchain-clean: gcc_final-clean uclibc-clean gcc_initial-clean binutils-clean
|
||||||
|
|
||||||
@ -130,27 +126,6 @@ uclibc_toolchain-dirclean: gcc_final-dirclean uclibc-dirclean gcc_initial-dircle
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
#############################################################
|
|
||||||
#
|
|
||||||
# Setup the kernel headers, but don't compile anything for the target yet,
|
|
||||||
# since we still need to build a cross-compiler to do that little task for
|
|
||||||
# us... Try to work around this little chicken-and-egg problem..
|
|
||||||
#
|
|
||||||
#############################################################
|
|
||||||
ifeq ($(LINUX_DIR),)
|
|
||||||
LINUX_DIR:=$(BUILD_DIR)/linux
|
|
||||||
endif
|
|
||||||
$(LINUX_DIR)/.cross_compiler_set: $(BUILD_DIR)/.setup $(LINUX_DIR)/.configured
|
|
||||||
#If we were cross compiling the kernel, we would need to do this,
|
|
||||||
# but for UserMode Linux, we can skip this step....
|
|
||||||
#perl -i -p -e "s,^CROSS_COMPILE.*,\
|
|
||||||
# CROSS_COMPILE=$(STAGING_DIR)/bin/$(ARCH)-uclibc-,g;" \
|
|
||||||
# $(LINUX_DIR)/Makefile
|
|
||||||
touch $(LINUX_DIR)/.cross_compiler_set
|
|
||||||
|
|
||||||
linux_headers: $(LINUX_DIR)/.cross_compiler_set
|
|
||||||
|
|
||||||
|
|
||||||
#############################################################
|
#############################################################
|
||||||
#
|
#
|
||||||
# build binutils
|
# build binutils
|
||||||
@ -293,7 +268,6 @@ $(UCLIBC_DIR)/.configured: $(UCLIBC_DIR)/.unpacked
|
|||||||
--kernel_dir=$(LINUX_DIR) \
|
--kernel_dir=$(LINUX_DIR) \
|
||||||
--float=true \
|
--float=true \
|
||||||
--c99_math=true \
|
--c99_math=true \
|
||||||
--long_long=true \
|
|
||||||
--float=true \
|
--float=true \
|
||||||
--shadow=true \
|
--shadow=true \
|
||||||
--threads=true \
|
--threads=true \
|
||||||
@ -453,8 +427,8 @@ $(BUILD_DIR)/.stripped: $(BUILD_DIR)/.shuffled
|
|||||||
-R .note -R .comment $(STAGING_DIR)/lib/*.so*;
|
-R .note -R .comment $(STAGING_DIR)/lib/*.so*;
|
||||||
touch $(BUILD_DIR)/.stripped
|
touch $(BUILD_DIR)/.stripped
|
||||||
|
|
||||||
#gcc_final: uclibc $(BUILD_DIR)/.stripped
|
#gcc_final: $(BUILD_DIR)/.stripped
|
||||||
gcc_final: uclibc $(BUILD_DIR)/.shuffled
|
gcc_final: $(BUILD_DIR)/.shuffled
|
||||||
|
|
||||||
gcc_final-clean:
|
gcc_final-clean:
|
||||||
rm -rf $(GCC_BUILD_DIR2)
|
rm -rf $(GCC_BUILD_DIR2)
|
||||||
|
@ -55,3 +55,12 @@ user-mode-linux_clean: clean
|
|||||||
user-mode-linux-dirclean:
|
user-mode-linux-dirclean:
|
||||||
rm -rf $(UMLINUX_DIR)
|
rm -rf $(UMLINUX_DIR)
|
||||||
|
|
||||||
|
#############################################################
|
||||||
|
#
|
||||||
|
# Setup the kernel headers, but don't compile anything for the target yet,
|
||||||
|
# since we still need to build a cross-compiler to do that little task for
|
||||||
|
# us... Try to work around this little chicken-and-egg problem..
|
||||||
|
#
|
||||||
|
#############################################################
|
||||||
|
linux_headers: $(UMLINUX_DIR)/.configured
|
||||||
|
|
||||||
|
@ -5,8 +5,8 @@
|
|||||||
#############################################################
|
#############################################################
|
||||||
|
|
||||||
VALGRIND_SITE:=http://developer.kde.org/~sewardj
|
VALGRIND_SITE:=http://developer.kde.org/~sewardj
|
||||||
VALGRIND_DIR:=$(BUILD_DIR)/valgrind-1.0.0
|
VALGRIND_DIR:=$(BUILD_DIR)/valgrind-1.0.1
|
||||||
VALGRIND_SOURCE:=valgrind-1.0.0.tar.bz2
|
VALGRIND_SOURCE:=valgrind-1.0.1.tar.bz2
|
||||||
VALGRIND_PATCH:=$(SOURCE_DIR)/valgrind.patch
|
VALGRIND_PATCH:=$(SOURCE_DIR)/valgrind.patch
|
||||||
|
|
||||||
$(DL_DIR)/$(VALGRIND_SOURCE):
|
$(DL_DIR)/$(VALGRIND_SOURCE):
|
||||||
|
Loading…
Reference in New Issue
Block a user