mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-27 19:37:10 +02:00
another batch of V= stuff
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@2244 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
8c7a1885ea
commit
cd45334873
3
Makefile
3
Makefile
@ -60,6 +60,7 @@ include .config.cmd
|
|||||||
|
|
||||||
world: $(DL_DIR) $(BUILD_DIR) configtest
|
world: $(DL_DIR) $(BUILD_DIR) configtest
|
||||||
$(MAKE) toolchain/install target/compile package/compile root_clean package/install target/install package_index
|
$(MAKE) toolchain/install target/compile package/compile root_clean package/install target/install package_index
|
||||||
|
$(TRACE) Build complete.
|
||||||
|
|
||||||
.PHONY: all world clean dirclean distclean image_clean target_clean source configtest
|
.PHONY: all world clean dirclean distclean image_clean target_clean source configtest
|
||||||
|
|
||||||
@ -107,7 +108,7 @@ target_clean: root_clean
|
|||||||
clean: dirclean
|
clean: dirclean
|
||||||
|
|
||||||
dirclean:
|
dirclean:
|
||||||
@$(TRACE) Cleaning...
|
@$(TRACE) dirclean
|
||||||
@$(MAKE) -C $(CONFIG) clean
|
@$(MAKE) -C $(CONFIG) clean
|
||||||
rm -rf $(BUILD_DIR)
|
rm -rf $(BUILD_DIR)
|
||||||
|
|
||||||
|
@ -37,7 +37,7 @@ endef
|
|||||||
|
|
||||||
ifneq ($(strip $(PKG_SOURCE)),)
|
ifneq ($(strip $(PKG_SOURCE)),)
|
||||||
$(DL_DIR)/$(PKG_SOURCE):
|
$(DL_DIR)/$(PKG_SOURCE):
|
||||||
@$(PKG_TRACE) "downloading... "
|
@$(CMD_TRACE) "downloading... "
|
||||||
$(SCRIPT_DIR)/download.pl "$(DL_DIR)" "$(PKG_SOURCE)" "$(PKG_MD5SUM)" $(PKG_SOURCE_URL) $(MAKE_TRACE)
|
$(SCRIPT_DIR)/download.pl "$(DL_DIR)" "$(PKG_SOURCE)" "$(PKG_MD5SUM)" $(PKG_SOURCE_URL) $(MAKE_TRACE)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
@ -55,7 +55,7 @@ endif
|
|||||||
all: compile
|
all: compile
|
||||||
|
|
||||||
source: $(DL_DIR)/$(PKG_SOURCE)
|
source: $(DL_DIR)/$(PKG_SOURCE)
|
||||||
prepare:
|
prepare: source
|
||||||
@[ -f $(PKG_BUILD_DIR)/.prepared ] || { \
|
@[ -f $(PKG_BUILD_DIR)/.prepared ] || { \
|
||||||
$(CMD_TRACE) "preparing... "; \
|
$(CMD_TRACE) "preparing... "; \
|
||||||
$(MAKE) $(PKG_BUILD_DIR)/.prepared $(MAKE_TRACE); \
|
$(MAKE) $(PKG_BUILD_DIR)/.prepared $(MAKE_TRACE); \
|
||||||
|
@ -9,23 +9,23 @@ IB_DIR:=$(BUILD_DIR)/$(IB_NAME)
|
|||||||
define kernel_template
|
define kernel_template
|
||||||
|
|
||||||
$(1)/$(2)-clean:
|
$(1)/$(2)-clean:
|
||||||
$(TRACE) target/linux/linux-$(2)/clean
|
$(TRACE) target/linux/linux-$(1)/clean
|
||||||
$(MAKE) -C linux-$(1) KERNEL="$(1)" BOARD="$(2)" clean
|
$(MAKE) -C linux-$(1) KERNEL="$(1)" BOARD="$(2)" clean
|
||||||
|
|
||||||
$(1)/$(2)-prepare:
|
$(1)/$(2)-prepare:
|
||||||
$(TRACE) target/linux/linux-$(2)/prepare
|
$(TRACE) target/linux/linux-$(1)/prepare
|
||||||
$(MAKE) -C linux-$(1) KERNEL="$(1)" BOARD="$(2)" prepare
|
$(MAKE) -C linux-$(1) KERNEL="$(1)" BOARD="$(2)" prepare
|
||||||
|
|
||||||
$(1)/$(2)-compile:
|
$(1)/$(2)-compile:
|
||||||
$(TRACE) target/linux/linux-$(2)/compile
|
$(TRACE) target/linux/linux-$(1)/compile
|
||||||
$(MAKE) -C linux-$(1) KERNEL="$(1)" BOARD="$(2)" compile
|
$(MAKE) -C linux-$(1) KERNEL="$(1)" BOARD="$(2)" compile
|
||||||
|
|
||||||
$(1)/$(2)-rebuild:
|
$(1)/$(2)-rebuild:
|
||||||
$(TRACE) target/linux/linux-$(2)/rebuild
|
$(TRACE) target/linux/linux-$(1)/rebuild
|
||||||
$(MAKE) -C linux-$(1) KERNEL="$(1)" BOARD="$(2)" rebuild
|
$(MAKE) -C linux-$(1) KERNEL="$(1)" BOARD="$(2)" rebuild
|
||||||
|
|
||||||
$(1)/$(2)-install:
|
$(1)/$(2)-install:
|
||||||
$(TRACE) target/linux/linux-$(2)/install
|
$(TRACE) target/linux/linux-$(1)/install
|
||||||
$(MAKE) -C linux-$(1) KERNEL="$(1)" BOARD="$(2)" install
|
$(MAKE) -C linux-$(1) KERNEL="$(1)" BOARD="$(2)" install
|
||||||
|
|
||||||
$(1)/$(2)-image: $(1)/$(2)-install
|
$(1)/$(2)-image: $(1)/$(2)-install
|
||||||
|
@ -204,7 +204,6 @@ $(PACKAGE_DIR):
|
|||||||
mkdir -p $(PACKAGE_DIR)
|
mkdir -p $(PACKAGE_DIR)
|
||||||
|
|
||||||
$(LINUX_DIR)/.unpacked: $(DL_DIR)/$(LINUX_SOURCE)
|
$(LINUX_DIR)/.unpacked: $(DL_DIR)/$(LINUX_SOURCE)
|
||||||
@$(PKG_TRACE) Preparing...
|
|
||||||
-mkdir -p $(LINUX_BUILD_DIR)
|
-mkdir -p $(LINUX_BUILD_DIR)
|
||||||
bzcat $(DL_DIR)/$(LINUX_SOURCE) | tar -C $(LINUX_BUILD_DIR) $(TAR_OPTIONS) -
|
bzcat $(DL_DIR)/$(LINUX_SOURCE) | tar -C $(LINUX_BUILD_DIR) $(TAR_OPTIONS) -
|
||||||
rm -f $(LINUX_DIR)
|
rm -f $(LINUX_DIR)
|
||||||
@ -217,7 +216,6 @@ $(LINUX_DIR)/.patched: $(LINUX_DIR)/.unpacked
|
|||||||
touch $(LINUX_DIR)/.patched
|
touch $(LINUX_DIR)/.patched
|
||||||
|
|
||||||
$(LINUX_DIR)/.configured: $(LINUX_DIR)/.patched
|
$(LINUX_DIR)/.configured: $(LINUX_DIR)/.patched
|
||||||
@$(PKG_TRACE) Configuring...
|
|
||||||
-cp $(LINUX_KCONFIG) $(LINUX_DIR)/.config
|
-cp $(LINUX_KCONFIG) $(LINUX_DIR)/.config
|
||||||
$(SED) "s,^CROSS_COMPILE.*,CROSS_COMPILE=$(KERNEL_CROSS),g;" \
|
$(SED) "s,^CROSS_COMPILE.*,CROSS_COMPILE=$(KERNEL_CROSS),g;" \
|
||||||
$(LINUX_DIR)/Makefile \
|
$(LINUX_DIR)/Makefile \
|
||||||
@ -269,7 +267,7 @@ $(KERNEL_IPKG):
|
|||||||
if [ -f ./config/$(BOARD).modules ]; then \
|
if [ -f ./config/$(BOARD).modules ]; then \
|
||||||
cp ./config/$(BOARD).modules $(KERNEL_IDIR)/etc/modules; \
|
cp ./config/$(BOARD).modules $(KERNEL_IDIR)/etc/modules; \
|
||||||
fi
|
fi
|
||||||
$(IPKG_BUILD) $(KERNEL_IDIR) $(LINUX_BUILD_DIR)
|
$(IPKG_BUILD) $(KERNEL_IDIR) $(LINUX_BUILD_DIR) $(MAKE_TRACE)
|
||||||
|
|
||||||
source: $(DL_DIR)/$(LINUX_SOURCE)
|
source: $(DL_DIR)/$(LINUX_SOURCE)
|
||||||
prepare: $(LINUX_DIR)/.configured
|
prepare: $(LINUX_DIR)/.configured
|
||||||
|
@ -179,11 +179,9 @@ $(PACKAGE_DIR):
|
|||||||
|
|
||||||
$(DL_DIR)/$(LINUX_SOURCE):
|
$(DL_DIR)/$(LINUX_SOURCE):
|
||||||
-mkdir -p $(DL_DIR)
|
-mkdir -p $(DL_DIR)
|
||||||
@$(PKG_TRACE) Downloading...
|
|
||||||
$(SCRIPT_DIR)/download.pl $(DL_DIR) $(LINUX_SOURCE) $(LINUX_KERNEL_MD5SUM) $(LINUX_SITE) $(MAKE_TRACE)
|
$(SCRIPT_DIR)/download.pl $(DL_DIR) $(LINUX_SOURCE) $(LINUX_KERNEL_MD5SUM) $(LINUX_SITE) $(MAKE_TRACE)
|
||||||
|
|
||||||
$(LINUX_DIR)/.unpacked: $(DL_DIR)/$(LINUX_SOURCE)
|
$(LINUX_DIR)/.unpacked: $(DL_DIR)/$(LINUX_SOURCE)
|
||||||
@$(PKG_TRACE) Preparing...
|
|
||||||
-mkdir -p $(LINUX_BUILD_DIR)
|
-mkdir -p $(LINUX_BUILD_DIR)
|
||||||
bzcat $(DL_DIR)/$(LINUX_SOURCE) | tar -C $(LINUX_BUILD_DIR) $(TAR_OPTIONS) -
|
bzcat $(DL_DIR)/$(LINUX_SOURCE) | tar -C $(LINUX_BUILD_DIR) $(TAR_OPTIONS) -
|
||||||
rm -f $(LINUX_DIR)
|
rm -f $(LINUX_DIR)
|
||||||
@ -196,7 +194,6 @@ $(LINUX_DIR)/.patched: $(LINUX_DIR)/.unpacked
|
|||||||
touch $(LINUX_DIR)/.patched
|
touch $(LINUX_DIR)/.patched
|
||||||
|
|
||||||
$(LINUX_DIR)/.configured: $(LINUX_DIR)/.patched
|
$(LINUX_DIR)/.configured: $(LINUX_DIR)/.patched
|
||||||
@$(PKG_TRACE) Configuring...
|
|
||||||
-cp $(LINUX_KCONFIG) $(LINUX_DIR)/.config
|
-cp $(LINUX_KCONFIG) $(LINUX_DIR)/.config
|
||||||
$(MAKE) -C $(LINUX_DIR) ARCH=$(LINUX_KARCH) oldconfig $(MAKE_TRACE)
|
$(MAKE) -C $(LINUX_DIR) ARCH=$(LINUX_KARCH) oldconfig $(MAKE_TRACE)
|
||||||
touch $(LINUX_DIR)/.configured
|
touch $(LINUX_DIR)/.configured
|
||||||
@ -230,7 +227,7 @@ $(KERNEL_IPKG):
|
|||||||
if [ -f ./config/$(BOARD).modules ]; then \
|
if [ -f ./config/$(BOARD).modules ]; then \
|
||||||
cp ./config/$(BOARD).modules $(KERNEL_IDIR)/etc/modules; \
|
cp ./config/$(BOARD).modules $(KERNEL_IDIR)/etc/modules; \
|
||||||
fi
|
fi
|
||||||
$(IPKG_BUILD) $(KERNEL_IDIR) $(LINUX_BUILD_DIR)
|
$(IPKG_BUILD) $(KERNEL_IDIR) $(LINUX_BUILD_DIR) $(MAKE_TRACE)
|
||||||
|
|
||||||
$(STAMP_DIR)/.linux-compile: $(LINUX_DIR)/.modules_done
|
$(STAMP_DIR)/.linux-compile: $(LINUX_DIR)/.modules_done
|
||||||
@mkdir -p $(STAMP_DIR)
|
@mkdir -p $(STAMP_DIR)
|
||||||
|
@ -49,7 +49,7 @@ MAKEOPTS:= BOARD="$(BOARD)" \
|
|||||||
@$(CMD_TRACE) " done"
|
@$(CMD_TRACE) " done"
|
||||||
@$(END_TRACE)
|
@$(END_TRACE)
|
||||||
|
|
||||||
%-install: %-compile
|
%-install:
|
||||||
@$(START_TRACE) "target/linux/package/$(patsubst %-install,%,$@)-install: "
|
@$(START_TRACE) "target/linux/package/$(patsubst %-install,%,$@)-install: "
|
||||||
$(MAKE) -C $(patsubst %-install,%,$@) \
|
$(MAKE) -C $(patsubst %-install,%,$@) \
|
||||||
$(MAKEOPTS) \
|
$(MAKEOPTS) \
|
||||||
|
@ -17,11 +17,9 @@ LZMA_ALONE_DIR=$(LZMA_DIR)/SRC/7zip/Compress/LZMA_Alone
|
|||||||
TARGETS=$(LZMA_LIB_DIR)/liblzma.a $(LZMA_ALONE_DIR)/lzma
|
TARGETS=$(LZMA_LIB_DIR)/liblzma.a $(LZMA_ALONE_DIR)/lzma
|
||||||
|
|
||||||
$(DL_DIR)/$(LZMA_SOURCE):
|
$(DL_DIR)/$(LZMA_SOURCE):
|
||||||
@$(PKG_TRACE) Downloading...
|
|
||||||
$(SCRIPT_DIR)/download.pl $(DL_DIR) $(LZMA_SOURCE) $(LZMA_MD5) $(LZMA_SITE) $(MAKE_TRACE)
|
$(SCRIPT_DIR)/download.pl $(DL_DIR) $(LZMA_SOURCE) $(LZMA_MD5) $(LZMA_SITE) $(MAKE_TRACE)
|
||||||
|
|
||||||
$(LZMA_DIR)/.unpacked: $(DL_DIR)/$(LZMA_SOURCE)
|
$(LZMA_DIR)/.unpacked: $(DL_DIR)/$(LZMA_SOURCE)
|
||||||
@$(PKG_TRACE) Preparing...
|
|
||||||
@rm -rf $(LZMA_DIR) && mkdir -p $(LZMA_DIR)
|
@rm -rf $(LZMA_DIR) && mkdir -p $(LZMA_DIR)
|
||||||
unzip -q $^ -d $(LZMA_DIR)
|
unzip -q $^ -d $(LZMA_DIR)
|
||||||
patch -d $(LZMA_DIR) -p1 < lzma-406-zlib-stream.patch $(MAKE_TRACE)
|
patch -d $(LZMA_DIR) -p1 < lzma-406-zlib-stream.patch $(MAKE_TRACE)
|
||||||
@ -29,7 +27,6 @@ $(LZMA_DIR)/.unpacked: $(DL_DIR)/$(LZMA_SOURCE)
|
|||||||
|
|
||||||
$(LZMA_ALONE_DIR)/lzma $(LZMA_LIB_DIR)/liblzma.a: $(LZMA_DIR)/.built
|
$(LZMA_ALONE_DIR)/lzma $(LZMA_LIB_DIR)/liblzma.a: $(LZMA_DIR)/.built
|
||||||
$(LZMA_DIR)/.built: $(LZMA_DIR)/.unpacked
|
$(LZMA_DIR)/.built: $(LZMA_DIR)/.unpacked
|
||||||
@$(PKG_TRACE) Compiling...
|
|
||||||
$(MAKE) -C $(LZMA_LIB_DIR) $(MAKE_TRACE)
|
$(MAKE) -C $(LZMA_LIB_DIR) $(MAKE_TRACE)
|
||||||
$(MAKE) -C $(LZMA_ALONE_DIR) $(MAKE_TRACE)
|
$(MAKE) -C $(LZMA_ALONE_DIR) $(MAKE_TRACE)
|
||||||
touch $@
|
touch $@
|
||||||
@ -40,7 +37,6 @@ lzma: $(TARGETS)
|
|||||||
lzma-source: $(DL_DIR)/$(LZMA_SOURCE)
|
lzma-source: $(DL_DIR)/$(LZMA_SOURCE)
|
||||||
|
|
||||||
lzma-clean:
|
lzma-clean:
|
||||||
@$(PKG_TRACE) Cleaining...
|
|
||||||
-$(MAKE) -C $(LZMA_LIB_DIR) clean $(MAKE_TRACE)
|
-$(MAKE) -C $(LZMA_LIB_DIR) clean $(MAKE_TRACE)
|
||||||
-$(MAKE) -C $(LZMA_ALONE_DIR) clean $(MAKE_TRACE)
|
-$(MAKE) -C $(LZMA_ALONE_DIR) clean $(MAKE_TRACE)
|
||||||
rm -f $(LZMA_DIR)/liblzma.a $(LZMA_DIR)/lzma
|
rm -f $(LZMA_DIR)/liblzma.a $(LZMA_DIR)/lzma
|
||||||
|
Loading…
Reference in New Issue
Block a user