Fixup 'make source' target
This commit is contained in:
parent
c8eea31d3f
commit
a5c2354153
8
Makefile
8
Makefile
@ -154,17 +154,18 @@ STRIP=$(TARGET_CROSS)strip --remove-section=.comment --remove-section=.note
|
||||
#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
|
||||
|
||||
@ -192,6 +193,7 @@ $(TARGET_DIR):
|
||||
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)
|
||||
|
||||
#############################################################
|
||||
#
|
||||
|
@ -24,7 +24,7 @@ ifneq ($(filter $(TARGETS),linux),)
|
||||
# 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)
|
||||
|
@ -83,6 +83,8 @@ $(TARGET_DIR)/usr/bin/ldd: $(TARGET_DIR)/lib/libc.so.0
|
||||
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
|
||||
|
@ -95,6 +95,8 @@ $(STAGING_DIR)/.setup:
|
||||
#############################################################
|
||||
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
|
||||
|
@ -103,6 +103,9 @@ endif
|
||||
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user