#STRIP:=/bin/true
IMAGE:=$(BASE_DIR)/root_fs
GNU_TARGET_NAME=$(OPTIMIZE_FOR_CPU)-linux
-#KERNEL_CROSS=$(STAGING_DIR)/bin/$(ARCH)-uclibc-
-KERNEL_CROSS:=
+KERNEL_CROSS=$(STAGING_DIR)/bin/$(ARCH)-uclibc-
all: world
TARGETS_CLEAN:=$(patsubst %,%-clean,$(TARGETS))
+TARGETS_SOURCE:=$(patsubst %,%-source,$(TARGETS))
TARGETS_DIRCLEAN:=$(patsubst %,%-dirclean,$(TARGETS))
world: $(DL_DIR) $(BUILD_DIR) $(STAGING_DIR) $(TARGET_DIR) $(TARGETS)
-.PHONY: all world clean dirclean distclean $(TARGETS) $(TARGETS_CLEAN) $(TARGETS_DIRCLEAN)
+.PHONY: all world clean dirclean distclean source $(TARGETS) \
+ $(TARGETS_CLEAN) $(TARGETS_DIRCLEAN) $(TARGETS_SOURCE)
include make/*.mk
cp -a $(SOURCE_DIR)/target_skeleton/* $(TARGET_DIR)/
-find $(TARGET_DIR) -type d -name CVS -exec rm -rf {} \; > /dev/null 2>&1
+source: $(TARGETS_SOURCE)
#############################################################
#
# Version of Linux to download and then apply patches to
DOWNLOAD_LINUX_VERSION=2.4.20
# Version of Linux AFTER patches
-LINUX_VERSION=2.4.20
+LINUX_VERSION=2.4.21-pre4
LINUX_FORMAT=bzImage
LINUX_BINLOC=arch/$(ARCH)/boot/$(LINUX_FORMAT)
uclibc: $(BUILD_DIR)/linux/.configured $(STAGING_DIR)/lib/libc.a \
$(TARGET_DIR)/lib/libc.so.0 $(TARGET_DIR)/usr/bin/ldd
+uclibc-source: $(DL_DIR)/$(UCLIBC_SOURCE)
+
uclibc-clean:
rm -f $(TARGET_DIR)/lib/libc.so.0
-$(MAKE) -C $(UCLIBC_DIR) clean
#############################################################
uclibc_toolchain: gcc_final
+uclibc_toolchain-source: $(DL_DIR)/$(BINUTILS_SOURCE) $(DL_DIR)/$(UCLIBC_SOURCE) $(DL_DIR)/$(GCC_SOURCE)
+
uclibc_toolchain-clean: gcc_final-clean uclibc-clean gcc_initial-clean binutils-clean
uclibc_toolchain-dirclean: gcc_final-dirclean uclibc-dirclean gcc_initial-dirclean binutils-dirclean
uclibc_toolchain: gcc_final
+uclibc_toolchain-source: $(DL_DIR)/$(BINUTILS_SOURCE) $(DL_DIR)/$(UCLIBC_SOURCE) \
+ $(DL_DIR)/$(GCC_SOURCE) $(DL_DIR)/$(STLPORT_SOURCE)
+
uclibc_toolchain-clean: gcc_final-clean uclibc-clean gcc_initial-clean binutils-clean
uclibc_toolchain-dirclean: gcc_final-dirclean uclibc-dirclean gcc_initial-dirclean binutils-dirclean