mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-24 01:43:08 +02:00
add some more verbosity stuff
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@2222 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
d0f611787c
commit
4213687753
2
Makefile
2
Makefile
@ -96,6 +96,7 @@ toolchain/%:
|
|||||||
#
|
#
|
||||||
#############################################################
|
#############################################################
|
||||||
root_clean:
|
root_clean:
|
||||||
|
@$(TRACE) Cleaning...
|
||||||
rm -rf $(BUILD_DIR)/linux-*/root $(BUILD_DIR)/root
|
rm -rf $(BUILD_DIR)/linux-*/root $(BUILD_DIR)/root
|
||||||
|
|
||||||
target_clean: root_clean
|
target_clean: root_clean
|
||||||
@ -106,6 +107,7 @@ target_clean: root_clean
|
|||||||
clean: dirclean
|
clean: dirclean
|
||||||
|
|
||||||
dirclean:
|
dirclean:
|
||||||
|
@$(TRACE) Cleaning...
|
||||||
@$(MAKE) -C $(CONFIG) clean
|
@$(MAKE) -C $(CONFIG) clean
|
||||||
rm -rf $(BUILD_DIR)
|
rm -rf $(BUILD_DIR)
|
||||||
|
|
||||||
|
@ -145,8 +145,8 @@ uninstall-dev:
|
|||||||
$(STAGING_DIR)/usr/lib/libavahi-core.so* \
|
$(STAGING_DIR)/usr/lib/libavahi-core.so* \
|
||||||
$(STAGING_DIR)/usr/lib/pkgconfig/avahi-core.pc \
|
$(STAGING_DIR)/usr/lib/pkgconfig/avahi-core.pc \
|
||||||
|
|
||||||
compile: install-dev
|
compile-targets: install-dev
|
||||||
clean: uninstall-dev
|
clean-targets: uninstall-dev
|
||||||
|
|
||||||
mostlyclean:
|
mostlyclean:
|
||||||
-$(MAKE) -C $(PKG_BUILD_DIR) clean
|
-$(MAKE) -C $(PKG_BUILD_DIR) clean
|
||||||
|
@ -18,7 +18,7 @@ include $(TOPDIR)/package/rules.mk
|
|||||||
|
|
||||||
$(eval $(call PKG_template,LIBEXPAT,libexpat,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
$(eval $(call PKG_template,LIBEXPAT,libexpat,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
||||||
|
|
||||||
$(PKG_BUILD_DIR)/.configured: $(PKG_BUILD_DIR)/.prepared
|
$(PKG_BUILD_DIR)/.configured:
|
||||||
(cd $(PKG_BUILD_DIR) ; rm -rf config.{cache,status} ; \
|
(cd $(PKG_BUILD_DIR) ; rm -rf config.{cache,status} ; \
|
||||||
$(TARGET_CONFIGURE_OPTS) \
|
$(TARGET_CONFIGURE_OPTS) \
|
||||||
CFLAGS="$(TARGET_CFLAGS)" \
|
CFLAGS="$(TARGET_CFLAGS)" \
|
||||||
@ -49,7 +49,7 @@ $(PKG_BUILD_DIR)/.configured: $(PKG_BUILD_DIR)/.prepared
|
|||||||
);
|
);
|
||||||
touch $@
|
touch $@
|
||||||
|
|
||||||
$(PKG_BUILD_DIR)/.built: $(PKG_BUILD_DIR)/.configured
|
$(PKG_BUILD_DIR)/.built:
|
||||||
rm -rf $(PKG_INSTALL_DIR)
|
rm -rf $(PKG_INSTALL_DIR)
|
||||||
mkdir -p $(PKG_INSTALL_DIR)
|
mkdir -p $(PKG_INSTALL_DIR)
|
||||||
$(MAKE) -C $(PKG_BUILD_DIR) \
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
||||||
@ -80,8 +80,8 @@ uninstall-dev:
|
|||||||
$(STAGING_DIR)/usr/include/expat*.h \
|
$(STAGING_DIR)/usr/include/expat*.h \
|
||||||
$(STAGING_DIR)/usr/lib/libexpat.{a,so*} \
|
$(STAGING_DIR)/usr/lib/libexpat.{a,so*} \
|
||||||
|
|
||||||
compile: install-dev
|
compile-targets: install-dev
|
||||||
clean: uninstall-dev
|
clean-targets: uninstall-dev
|
||||||
|
|
||||||
mostlyclean:
|
mostlyclean:
|
||||||
make -C $(PKG_BUILD_DIR) clean
|
make -C $(PKG_BUILD_DIR) clean
|
||||||
|
@ -16,6 +16,9 @@ $(PKG_BUILD_DIR)/.prepared:
|
|||||||
cp -a ./src/* $(PKG_BUILD_DIR)
|
cp -a ./src/* $(PKG_BUILD_DIR)
|
||||||
touch $@
|
touch $@
|
||||||
|
|
||||||
|
$(PKG_BUILD_DIR)/.configured:
|
||||||
|
touch $@
|
||||||
|
|
||||||
$(PKG_BUILD_DIR)/.built:
|
$(PKG_BUILD_DIR)/.built:
|
||||||
$(MAKE) -C $(PKG_BUILD_DIR) \
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
||||||
$(TARGET_CONFIGURE_OPTS) \
|
$(TARGET_CONFIGURE_OPTS) \
|
||||||
|
@ -6,13 +6,13 @@ IDIR_$(1):=$(PKG_BUILD_DIR)/ipkg/$(2)
|
|||||||
INFO_$(1):=$(IPKG_STATE_DIR)/info/$(2).list
|
INFO_$(1):=$(IPKG_STATE_DIR)/info/$(2).list
|
||||||
|
|
||||||
ifneq ($(BR2_PACKAGE_$(1)),)
|
ifneq ($(BR2_PACKAGE_$(1)),)
|
||||||
compile: $$(IPKG_$(1))
|
compile-targets: $$(IPKG_$(1))
|
||||||
endif
|
endif
|
||||||
ifneq ($(DEVELOPER),)
|
ifneq ($(DEVELOPER),)
|
||||||
compile: $$(IPKG_$(1))
|
compile-targets: $$(IPKG_$(1))
|
||||||
endif
|
endif
|
||||||
ifeq ($(BR2_PACKAGE_$(1)),y)
|
ifeq ($(BR2_PACKAGE_$(1)),y)
|
||||||
install: $$(INFO_$(1))
|
install-targets: $$(INFO_$(1))
|
||||||
endif
|
endif
|
||||||
|
|
||||||
IDEPEND_$(1):=$$(strip $(5))
|
IDEPEND_$(1):=$$(strip $(5))
|
||||||
@ -34,9 +34,11 @@ $(2)-clean:
|
|||||||
clean: $(2)-clean
|
clean: $(2)-clean
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
|
||||||
ifneq ($(strip $(PKG_SOURCE)),)
|
ifneq ($(strip $(PKG_SOURCE)),)
|
||||||
$(DL_DIR)/$(PKG_SOURCE):
|
$(DL_DIR)/$(PKG_SOURCE):
|
||||||
$(SCRIPT_DIR)/download.pl "$(DL_DIR)" "$(PKG_SOURCE)" "$(PKG_MD5SUM)" $(PKG_SOURCE_URL)
|
@$(PKG_TRACE) Downloading...
|
||||||
|
$(SCRIPT_DIR)/download.pl "$(DL_DIR)" "$(PKG_SOURCE)" "$(PKG_MD5SUM)" $(PKG_SOURCE_URL) $(MAKE_TRACE)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifneq ($(strip $(PKG_CAT)),)
|
ifneq ($(strip $(PKG_CAT)),)
|
||||||
@ -53,24 +55,53 @@ endif
|
|||||||
all: compile
|
all: compile
|
||||||
|
|
||||||
source: $(DL_DIR)/$(PKG_SOURCE)
|
source: $(DL_DIR)/$(PKG_SOURCE)
|
||||||
prepare: $(PKG_BUILD_DIR)/.prepared
|
prepare:
|
||||||
|
@[ -f $(PKG_BUILD_DIR)/.prepared ] || { \
|
||||||
|
$(PKG_TRACE) Preparing...; \
|
||||||
|
$(MAKE) $(PKG_BUILD_DIR)/.prepared $(MAKE_TRACE); \
|
||||||
|
}
|
||||||
|
|
||||||
|
configure:
|
||||||
|
@[ -f $(PKG_BUILD_DIR)/.configured ] || { \
|
||||||
|
$(PKG_TRACE) Configuring...; \
|
||||||
|
$(MAKE) $(PKG_BUILD_DIR)/.configured $(MAKE_TRACE); \
|
||||||
|
}
|
||||||
|
|
||||||
|
compile-targets:
|
||||||
compile:
|
compile:
|
||||||
|
@[ -f $(PKG_BUILD_DIR)/.configured ] || { \
|
||||||
|
$(PKG_TRACE) Configuring...; \
|
||||||
|
$(MAKE) $(PKG_BUILD_DIR)/.configured $(MAKE_TRACE); \
|
||||||
|
}
|
||||||
|
@[ -f $(PKG_BUILD_DIR)/.built ] || { \
|
||||||
|
$(PKG_TRACE) Compiling...; \
|
||||||
|
$(MAKE) compile-targets $(MAKE_TRACE); \
|
||||||
|
}
|
||||||
|
|
||||||
|
install-targets:
|
||||||
install:
|
install:
|
||||||
|
@$(PKG_TRACE) Installing...
|
||||||
|
@$(MAKE) install-targets $(MAKE_TRACE)
|
||||||
|
|
||||||
mostlyclean:
|
mostlyclean:
|
||||||
rebuild:
|
rebuild:
|
||||||
-$(MAKE) mostlyclean
|
$(PKG_TRACE) Rebuilding...
|
||||||
|
@-$(MAKE) mostlyclean 2>&1 >/dev/null
|
||||||
if [ -f $(PKG_BUILD_DIR)/.built ]; then \
|
if [ -f $(PKG_BUILD_DIR)/.built ]; then \
|
||||||
$(MAKE) clean; \
|
$(MAKE) clean $(MAKE_TRACE); \
|
||||||
fi
|
fi
|
||||||
$(MAKE) compile
|
$(MAKE) compile $(MAKE_TRACE)
|
||||||
|
|
||||||
$(PKG_BUILD_DIR)/.configured: $(PKG_BUILD_DIR)/.prepared
|
$(PKG_BUILD_DIR)/.configured: prepare
|
||||||
$(PKG_BUILD_DIR)/.built: $(PKG_BUILD_DIR)/.configured
|
$(PKG_BUILD_DIR)/.built: configure
|
||||||
|
|
||||||
$(PACKAGE_DIR):
|
$(PACKAGE_DIR):
|
||||||
mkdir -p $@
|
mkdir -p $@
|
||||||
|
|
||||||
|
clean-targets:
|
||||||
clean:
|
clean:
|
||||||
|
@$(PKG_TRACE) Cleaning...
|
||||||
|
@$(MAKE) clean-targets $(MAKE_TRACE)
|
||||||
rm -rf $(PKG_BUILD_DIR)
|
rm -rf $(PKG_BUILD_DIR)
|
||||||
|
|
||||||
.PHONY: all source prepare compile install clean
|
.PHONY: all source prepare compile install clean
|
||||||
|
3
rules.mk
3
rules.mk
@ -6,6 +6,7 @@ ifeq ($(V),)
|
|||||||
V=99
|
V=99
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
ifneq ($(V),0)
|
ifneq ($(V),0)
|
||||||
TRACE:=echo "---> "
|
TRACE:=echo "---> "
|
||||||
else
|
else
|
||||||
@ -20,7 +21,7 @@ endif
|
|||||||
|
|
||||||
ifeq (${shell [ "$(V)" -ge 10 ] && echo 1},)
|
ifeq (${shell [ "$(V)" -ge 10 ] && echo 1},)
|
||||||
EXTRA_MAKEFLAGS:=-s
|
EXTRA_MAKEFLAGS:=-s
|
||||||
MAKE_TRACE:=>&/dev/null
|
MAKE_TRACE:=2>&1 >&/dev/null || { echo "Build failed. Please re-run make with V=99 to see what's going on"; /bin/false; }
|
||||||
else
|
else
|
||||||
MAKE_TRACE:=
|
MAKE_TRACE:=
|
||||||
EXTRA_MAKEFLAGS:=
|
EXTRA_MAKEFLAGS:=
|
||||||
|
@ -15,8 +15,16 @@ include ./tgz.mk
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
prepare:
|
prepare:
|
||||||
|
@$(PKG_TRACE) Preparing...
|
||||||
|
$(MAKE) prepare-targets $(MAKE_TRACE)
|
||||||
compile:
|
compile:
|
||||||
|
@$(PKG_TRACE) Compiling...
|
||||||
|
$(MAKE) compile-targets $(MAKE_TRACE)
|
||||||
install:
|
install:
|
||||||
|
@$(PKG_TRACE) Installing...
|
||||||
|
$(MAKE) install-targets $(MAKE_TRACE)
|
||||||
|
|
||||||
|
.PHONY: prepare compile install
|
||||||
|
|
||||||
$(BOARD)-compile:
|
$(BOARD)-compile:
|
||||||
@$(TRACE) target/linux/image/$(BOARD)/prepare
|
@$(TRACE) target/linux/image/$(BOARD)/prepare
|
||||||
@ -38,4 +46,6 @@ install-prepare:
|
|||||||
|
|
||||||
rebuild: clean prepare compile install
|
rebuild: clean prepare compile install
|
||||||
clean:
|
clean:
|
||||||
|
@$(PKG_TRACE) Cleaning...
|
||||||
|
$(MAKE) clean-targets $(MAKE_TRACE)
|
||||||
|
|
||||||
|
@ -2,24 +2,24 @@ JFFS2OPTS := --pad --little-endian --squash
|
|||||||
#JFFS2OPTS += -Xlzo -msize -Xlzari
|
#JFFS2OPTS += -Xlzo -msize -Xlzari
|
||||||
|
|
||||||
jffs2-prepare:
|
jffs2-prepare:
|
||||||
$(MAKE) -C jffs2 prepare
|
$(MAKE) -C jffs2 prepare $(MAKE_TRACE)
|
||||||
|
|
||||||
jffs2-compile:
|
jffs2-compile: prepare-targets
|
||||||
$(MAKE) -C jffs2 compile
|
$(MAKE) -C jffs2 compile $(MAKE_TRACE)
|
||||||
|
|
||||||
jffs2-clean:
|
jffs2-clean:
|
||||||
$(MAKE) -C jffs2 clean
|
$(MAKE) -C jffs2 clean $(MAKE_TRACE)
|
||||||
rm -f $(KDIR)/root.jffs2*
|
rm -f $(KDIR)/root.jffs2*
|
||||||
|
|
||||||
$(KDIR)/root.jffs2-4MB: install-prepare
|
$(KDIR)/root.jffs2-4MB: install-prepare
|
||||||
@rm -rf $(KDIR)/root/jffs
|
@rm -rf $(KDIR)/root/jffs
|
||||||
$(STAGING_DIR)/bin/mkfs.jffs2 $(JFFS2OPTS) -e 0x10000 -o $@ -d $(KDIR)/root
|
$(STAGING_DIR)/bin/mkfs.jffs2 $(JFFS2OPTS) -e 0x10000 -o $@ -d $(KDIR)/root $(MAKE_TRACE)
|
||||||
|
|
||||||
$(KDIR)/root.jffs2-8MB: install-prepare
|
$(KDIR)/root.jffs2-8MB: install-prepare
|
||||||
@rm -rf $(KDIR)/root/jffs
|
@rm -rf $(KDIR)/root/jffs
|
||||||
$(STAGING_DIR)/bin/mkfs.jffs2 $(JFFS2OPTS) -e 0x20000 -o $@ -d $(KDIR)/root
|
$(STAGING_DIR)/bin/mkfs.jffs2 $(JFFS2OPTS) -e 0x20000 -o $@ -d $(KDIR)/root $(MAKE_TRACE)
|
||||||
|
|
||||||
jffs2-install: $(KDIR)/root.jffs2-4MB $(KDIR)/root.jffs2-8MB $(BOARD)-compile
|
jffs2-install: compile-targets $(KDIR)/root.jffs2-4MB $(KDIR)/root.jffs2-8MB $(BOARD)-compile
|
||||||
$(TRACE) target/linux/image/$(BOARD)/install
|
$(TRACE) target/linux/image/$(BOARD)/install
|
||||||
$(MAKE) -C $(BOARD) install KERNEL="$(KERNEL)" FS="jffs2-4MB"
|
$(MAKE) -C $(BOARD) install KERNEL="$(KERNEL)" FS="jffs2-4MB"
|
||||||
$(TRACE) target/linux/image/$(BOARD)/install
|
$(TRACE) target/linux/image/$(BOARD)/install
|
||||||
@ -29,9 +29,9 @@ jffs2-install-ib:
|
|||||||
mkdir -p $(IB_DIR)/staging_dir_$(ARCH)/bin
|
mkdir -p $(IB_DIR)/staging_dir_$(ARCH)/bin
|
||||||
cp $(STAGING_DIR)/bin/mkfs.jffs2 $(IB_DIR)/staging_dir_$(ARCH)/bin
|
cp $(STAGING_DIR)/bin/mkfs.jffs2 $(IB_DIR)/staging_dir_$(ARCH)/bin
|
||||||
|
|
||||||
prepare: jffs2-prepare
|
prepare-targets: jffs2-prepare
|
||||||
compile: jffs2-compile
|
compile-targets: jffs2-compile
|
||||||
install: jffs2-install
|
install-targets: jffs2-install
|
||||||
install-ib: jffs2-install-ib
|
install-ib: jffs2-install-ib
|
||||||
clean: jffs2-clean
|
clean-targets: jffs2-clean
|
||||||
|
|
||||||
|
@ -1,18 +1,18 @@
|
|||||||
squashfs-prepare:
|
squashfs-prepare:
|
||||||
$(MAKE) -C squashfs prepare
|
$(MAKE) -C squashfs prepare $(MAKE_TRACE)
|
||||||
|
|
||||||
squashfs-compile:
|
squashfs-compile: prepare-targets
|
||||||
$(MAKE) -C squashfs compile
|
$(MAKE) -C squashfs compile $(MAKE_TRACE)
|
||||||
|
|
||||||
squashfs-clean:
|
squashfs-clean:
|
||||||
$(MAKE) -C squashfs clean
|
$(MAKE) -C squashfs clean $(MAKE_TRACE)
|
||||||
rm -f $(KDIR)/root.squashfs
|
rm -f $(KDIR)/root.squashfs
|
||||||
|
|
||||||
$(KDIR)/root.squashfs: install-prepare
|
$(KDIR)/root.squashfs: install-prepare
|
||||||
@mkdir -p $(KDIR)/root/jffs
|
@mkdir -p $(KDIR)/root/jffs
|
||||||
$(STAGING_DIR)/bin/mksquashfs-lzma $(KDIR)/root $@ -nopad -noappend -root-owned -le
|
$(STAGING_DIR)/bin/mksquashfs-lzma $(KDIR)/root $@ -nopad -noappend -root-owned -le $(MAKE_TRACE)
|
||||||
|
|
||||||
squashfs-install: $(KDIR)/root.squashfs $(BOARD)-compile
|
squashfs-install: install-targets $(KDIR)/root.squashfs $(BOARD)-compile
|
||||||
$(TRACE) target/linux/image/$(BOARD)/install
|
$(TRACE) target/linux/image/$(BOARD)/install
|
||||||
$(MAKE) -C $(BOARD) install KERNEL="$(KERNEL)" FS="squashfs"
|
$(MAKE) -C $(BOARD) install KERNEL="$(KERNEL)" FS="squashfs"
|
||||||
|
|
||||||
@ -20,8 +20,8 @@ squashfs-install-ib:
|
|||||||
mkdir -p $(IB_DIR)/staging_dir_$(ARCH)/bin
|
mkdir -p $(IB_DIR)/staging_dir_$(ARCH)/bin
|
||||||
cp $(STAGING_DIR)/bin/mksquashfs-lzma $(IB_DIR)/staging_dir_$(ARCH)/bin
|
cp $(STAGING_DIR)/bin/mksquashfs-lzma $(IB_DIR)/staging_dir_$(ARCH)/bin
|
||||||
|
|
||||||
prepare: squashfs-prepare
|
prepare-targets: squashfs-prepare
|
||||||
compile: squashfs-compile
|
compile-targets: squashfs-compile
|
||||||
install: squashfs-install
|
install-targets: squashfs-install
|
||||||
install-ib: squashfs-install-ib
|
install-ib: squashfs-install-ib
|
||||||
clean: squashfs-clean
|
clean: squashfs-clean
|
||||||
|
@ -204,6 +204,7 @@ $(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)
|
||||||
@ -211,34 +212,35 @@ $(LINUX_DIR)/.unpacked: $(DL_DIR)/$(LINUX_SOURCE)
|
|||||||
touch $(LINUX_DIR)/.unpacked
|
touch $(LINUX_DIR)/.unpacked
|
||||||
|
|
||||||
$(LINUX_DIR)/.patched: $(LINUX_DIR)/.unpacked
|
$(LINUX_DIR)/.patched: $(LINUX_DIR)/.unpacked
|
||||||
$(PATCH) $(LINUX_DIR) ./patches/generic
|
$(PATCH) $(LINUX_DIR) ./patches/generic $(MAKE_TRACE)
|
||||||
[ -d ./patches/$(BOARD) ] && $(PATCH) $(LINUX_DIR) ./patches/$(BOARD)
|
[ -d ./patches/$(BOARD) ] && $(PATCH) $(LINUX_DIR) ./patches/$(BOARD) $(MAKE_TRACE)
|
||||||
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 \
|
||||||
$(LINUX_DIR)/arch/*/Makefile
|
$(LINUX_DIR)/arch/*/Makefile
|
||||||
$(SED) "s,\-mcpu=,\-mtune=,g;" $(LINUX_DIR)/arch/mips/Makefile
|
$(SED) "s,\-mcpu=,\-mtune=,g;" $(LINUX_DIR)/arch/mips/Makefile
|
||||||
$(MAKE) -C $(LINUX_DIR) ARCH=$(LINUX_KARCH) oldconfig include/linux/version.h
|
$(MAKE) -C $(LINUX_DIR) ARCH=$(LINUX_KARCH) oldconfig include/linux/version.h $(MAKE_TRACE)
|
||||||
touch $(LINUX_DIR)/.configured
|
touch $(LINUX_DIR)/.configured
|
||||||
|
|
||||||
$(LINUX_DIR)/.depend_done: $(LINUX_DIR)/.configured
|
$(LINUX_DIR)/.depend_done: $(LINUX_DIR)/.configured
|
||||||
$(MAKE) -C $(LINUX_DIR) ARCH=$(LINUX_KARCH) dep
|
$(MAKE) -C $(LINUX_DIR) ARCH=$(LINUX_KARCH) dep $(MAKE_TRACE)
|
||||||
touch $(LINUX_DIR)/.depend_done
|
touch $(LINUX_DIR)/.depend_done
|
||||||
|
|
||||||
$(LINUX_DIR)/vmlinux: $(LINUX_DIR)/.depend_done
|
$(LINUX_DIR)/vmlinux: $(LINUX_DIR)/.depend_done
|
||||||
$(MAKE) -C $(LINUX_DIR) ARCH=$(LINUX_KARCH) PATH=$(TARGET_PATH)
|
$(MAKE) -C $(LINUX_DIR) ARCH=$(LINUX_KARCH) PATH=$(TARGET_PATH) $(MAKE_TRACE)
|
||||||
|
|
||||||
$(LINUX_KERNEL): $(LINUX_DIR)/vmlinux
|
$(LINUX_KERNEL): $(LINUX_DIR)/vmlinux
|
||||||
$(TARGET_CROSS)objcopy -O binary -R .reginfo -R .note -R .comment -R .mdebug -S $< $@
|
$(TARGET_CROSS)objcopy -O binary -R .reginfo -R .note -R .comment -R .mdebug -S $< $@ $(MAKE_TRACE)
|
||||||
touch -c $(LINUX_KERNEL)
|
touch -c $(LINUX_KERNEL)
|
||||||
|
|
||||||
$(LINUX_DIR)/.modules_done: $(LINUX_KERNEL) $(LINUX_IMAGE)
|
$(LINUX_DIR)/.modules_done: $(LINUX_KERNEL) $(LINUX_IMAGE)
|
||||||
rm -rf $(LINUX_BUILD_DIR)/modules
|
rm -rf $(LINUX_BUILD_DIR)/modules
|
||||||
$(MAKE) -C $(LINUX_DIR) ARCH=$(LINUX_KARCH) PATH=$(TARGET_PATH) modules
|
$(MAKE) -C $(LINUX_DIR) ARCH=$(LINUX_KARCH) PATH=$(TARGET_PATH) modules $(MAKE_TRACE)
|
||||||
$(MAKE) -C $(LINUX_DIR) DEPMOD=true INSTALL_MOD_PATH=$(LINUX_BUILD_DIR)/modules modules_install
|
$(MAKE) -C $(LINUX_DIR) DEPMOD=true INSTALL_MOD_PATH=$(LINUX_BUILD_DIR)/modules modules_install $(MAKE_TRACE)
|
||||||
touch $(LINUX_DIR)/.modules_done
|
touch $(LINUX_DIR)/.modules_done
|
||||||
|
|
||||||
$(STAGING_DIR)/include/linux/version.h: $(LINUX_DIR)/.configured
|
$(STAGING_DIR)/include/linux/version.h: $(LINUX_DIR)/.configured
|
||||||
@ -249,11 +251,6 @@ $(STAGING_DIR)/include/linux/version.h: $(LINUX_DIR)/.configured
|
|||||||
$(STAMP_DIR)/.linux-compile: $(LINUX_DIR)/.modules_done
|
$(STAMP_DIR)/.linux-compile: $(LINUX_DIR)/.modules_done
|
||||||
@mkdir -p $(STAMP_DIR)
|
@mkdir -p $(STAMP_DIR)
|
||||||
@$(MAKE) $(TARGETS)
|
@$(MAKE) $(TARGETS)
|
||||||
ln -sf $(LINUX_BUILD_DIR)/linux-$(LINUX_VERSION) $(LINUX_DIR)
|
|
||||||
@$(TRACE) target/linux/package
|
|
||||||
$(MAKE) -C $(TOPDIR)/target/linux/package \
|
|
||||||
$(KPKG_MAKEOPTS) \
|
|
||||||
compile
|
|
||||||
touch $@
|
touch $@
|
||||||
|
|
||||||
$(TARGET_MODULES_DIR):
|
$(TARGET_MODULES_DIR):
|
||||||
@ -271,7 +268,14 @@ $(KERNEL_IPKG):
|
|||||||
|
|
||||||
source: $(DL_DIR)/$(LINUX_SOURCE)
|
source: $(DL_DIR)/$(LINUX_SOURCE)
|
||||||
prepare: $(LINUX_DIR)/.configured
|
prepare: $(LINUX_DIR)/.configured
|
||||||
compile: $(STAMP_DIR)/.linux-compile
|
compile:
|
||||||
|
@$(PKG_TRACE) Compiling...
|
||||||
|
$(MAKE) $(STAMP_DIR)/.linux-compile $(MAKE_TRACE)
|
||||||
|
ln -sf $(LINUX_BUILD_DIR)/linux-$(LINUX_VERSION) $(LINUX_DIR)
|
||||||
|
@$(TRACE) target/linux/package
|
||||||
|
$(MAKE) -C $(TOPDIR)/target/linux/package \
|
||||||
|
$(KPKG_MAKEOPTS) \
|
||||||
|
compile
|
||||||
|
|
||||||
install: compile $(TARGET_MODULES_DIR) $(KERNEL_IPKG)
|
install: compile $(TARGET_MODULES_DIR) $(KERNEL_IPKG)
|
||||||
rm -rf $(LINUX_BUILD_DIR)/root*
|
rm -rf $(LINUX_BUILD_DIR)/root*
|
||||||
@ -280,23 +284,25 @@ install: compile $(TARGET_MODULES_DIR) $(KERNEL_IPKG)
|
|||||||
$(MAKE) -C $(TOPDIR)/target/linux/package \
|
$(MAKE) -C $(TOPDIR)/target/linux/package \
|
||||||
$(KPKG_MAKEOPTS) \
|
$(KPKG_MAKEOPTS) \
|
||||||
install
|
install
|
||||||
[ "$(INSTALL_TARGETS)" != "" ] && $(IPKG_KERNEL) install $(INSTALL_TARGETS) || true
|
{ [ "$(INSTALL_TARGETS)" != "" ] && $(IPKG_KERNEL) install $(INSTALL_TARGETS) || true } $(MAKE_TRACE)
|
||||||
|
|
||||||
mostlyclean:
|
mostlyclean:
|
||||||
|
@$(PKG_TRACE) Cleaning...
|
||||||
rm -f $(STAMP_DIR)/.linux-compile
|
rm -f $(STAMP_DIR)/.linux-compile
|
||||||
rm -f $(LINUX_BUILD_DIR)/linux-$(LINUX_VERSION)/.modules_done
|
rm -f $(LINUX_BUILD_DIR)/linux-$(LINUX_VERSION)/.modules_done
|
||||||
rm -f $(LINUX_BUILD_DIR)/linux-$(LINUX_VERSION)/.drivers-unpacked
|
rm -f $(LINUX_BUILD_DIR)/linux-$(LINUX_VERSION)/.drivers-unpacked
|
||||||
$(MAKE) -C $(LINUX_BUILD_DIR)/linux-$(LINUX_VERSION) clean
|
$(MAKE) -C $(LINUX_BUILD_DIR)/linux-$(LINUX_VERSION) clean $(MAKE_TRACE)
|
||||||
rm -f $(LINUX_KERNEL) $(LINUX_IMAGE)
|
rm -f $(LINUX_KERNEL) $(LINUX_IMAGE)
|
||||||
|
|
||||||
rebuild:
|
rebuild:
|
||||||
-$(MAKE) mostlyclean
|
-$(MAKE) mostlyclean
|
||||||
if [ -f $(LINUX_KERNEL) ]; then \
|
if [ -f $(LINUX_KERNEL) ]; then \
|
||||||
$(MAKE) clean; \
|
$(MAKE) clean $(MAKE_TRACE); \
|
||||||
fi
|
fi
|
||||||
$(MAKE) compile
|
$(MAKE) compile $(MAKE_TRACE)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
@$(PKG_TRACE) Cleaning...
|
||||||
rm -f $(STAMP_DIR)/.linux-compile
|
rm -f $(STAMP_DIR)/.linux-compile
|
||||||
rm -rf $(LINUX_BUILD_DIR)
|
rm -rf $(LINUX_BUILD_DIR)
|
||||||
rm -f $(TARGETS)
|
rm -f $(TARGETS)
|
||||||
|
@ -12,7 +12,7 @@ ATM_FIRMWARE_FILE=$(ATM_FIRMWARE_DIR).tar.gz
|
|||||||
ATM_FIRMWARE_MD5SUM=8bfcb31109796502d66b11baaeb2fba6
|
ATM_FIRMWARE_MD5SUM=8bfcb31109796502d66b11baaeb2fba6
|
||||||
|
|
||||||
$(DL_DIR)/$(ATM_FIRMWARE_FILE):
|
$(DL_DIR)/$(ATM_FIRMWARE_FILE):
|
||||||
$(SCRIPT_DIR)/download.pl $(DL_DIR) $(ATM_FIRMWARE_FILE) $(ATM_FIRMWARE_MD5SUM) $(DOWNLOAD_SITE)
|
$(SCRIPT_DIR)/download.pl $(DL_DIR) $(ATM_FIRMWARE_FILE) $(ATM_FIRMWARE_MD5SUM) $(DOWNLOAD_SITE) $(MAKE_TRACE)
|
||||||
|
|
||||||
$(LINUX_DIR)/.unpacked: $(DL_DIR)/$(ATM_FIRMWARE_FILE)
|
$(LINUX_DIR)/.unpacked: $(DL_DIR)/$(ATM_FIRMWARE_FILE)
|
||||||
$(LINUX_DIR)/.depend_done: $(LINUX_DIR)/.drivers-unpacked
|
$(LINUX_DIR)/.depend_done: $(LINUX_DIR)/.drivers-unpacked
|
||||||
|
@ -27,10 +27,10 @@ LINUX_ET_DRIVER=kernel-source-et-0.11.tar.gz
|
|||||||
LINUX_ET_MD5SUM=bdc23ab59440793e35cab039457f6358
|
LINUX_ET_MD5SUM=bdc23ab59440793e35cab039457f6358
|
||||||
|
|
||||||
$(DL_DIR)/$(LINUX_BINARY_WL_DRIVER):
|
$(DL_DIR)/$(LINUX_BINARY_WL_DRIVER):
|
||||||
$(SCRIPT_DIR)/download.pl $(DL_DIR) $(LINUX_BINARY_WL_DRIVER) $(LINUX_BINARY_WL_MD5SUM) $(LINUX_BINARY_DRIVER_SITE)
|
$(SCRIPT_DIR)/download.pl $(DL_DIR) $(LINUX_BINARY_WL_DRIVER) $(LINUX_BINARY_WL_MD5SUM) $(LINUX_BINARY_DRIVER_SITE) $(MAKE_TRACE)
|
||||||
|
|
||||||
$(DL_DIR)/$(LINUX_ET_DRIVER):
|
$(DL_DIR)/$(LINUX_ET_DRIVER):
|
||||||
$(SCRIPT_DIR)/download.pl $(DL_DIR) $(LINUX_ET_DRIVER) $(LINUX_ET_MD5SUM) $(LINUX_BINARY_DRIVER_SITE)
|
$(SCRIPT_DIR)/download.pl $(DL_DIR) $(LINUX_ET_DRIVER) $(LINUX_ET_MD5SUM) $(LINUX_BINARY_DRIVER_SITE) $(MAKE_TRACE)
|
||||||
|
|
||||||
$(LINUX_DIR)/.unpacked: $(DL_DIR)/$(LINUX_BINARY_WL_DRIVER) $(DL_DIR)/$(LINUX_ET_DRIVER)
|
$(LINUX_DIR)/.unpacked: $(DL_DIR)/$(LINUX_BINARY_WL_DRIVER) $(DL_DIR)/$(LINUX_ET_DRIVER)
|
||||||
$(LINUX_DIR)/.depend_done: $(LINUX_DIR)/.drivers-unpacked
|
$(LINUX_DIR)/.depend_done: $(LINUX_DIR)/.drivers-unpacked
|
||||||
@ -42,11 +42,11 @@ $(LINUX_DIR)/.drivers-unpacked: $(LINUX_DIR)/.unpacked
|
|||||||
zcat $(DL_DIR)/$(LINUX_ET_DRIVER) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
zcat $(DL_DIR)/$(LINUX_ET_DRIVER) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
||||||
# copy binary wlan driver
|
# copy binary wlan driver
|
||||||
mkdir -p $(LINUX_DIR)/drivers/net/{et,wl}
|
mkdir -p $(LINUX_DIR)/drivers/net/{et,wl}
|
||||||
cp -a $(BUILD_DIR)/wl/*.o $(LINUX_DIR)/drivers/net/wl
|
cp -fpR $(BUILD_DIR)/wl/*.o $(LINUX_DIR)/drivers/net/wl
|
||||||
# copy proprietary et source
|
# copy proprietary et source
|
||||||
cp -a $(BUILD_DIR)/et/* $(LINUX_DIR)/drivers/net/et
|
cp -fpR $(BUILD_DIR)/et/* $(LINUX_DIR)/drivers/net/et
|
||||||
mkdir -p $(LINUX_DIR)/arch/mips/bcm947xx/include/
|
mkdir -p $(LINUX_DIR)/arch/mips/bcm947xx/include/
|
||||||
cp -a $(BUILD_DIR)/et/*.h $(LINUX_DIR)/arch/mips/bcm947xx/include/
|
cp -fpR $(BUILD_DIR)/et/*.h $(LINUX_DIR)/arch/mips/bcm947xx/include/
|
||||||
touch $@
|
touch $@
|
||||||
|
|
||||||
linux-dirclean: drivers-clean
|
linux-dirclean: drivers-clean
|
||||||
|
@ -11,7 +11,7 @@ $(eval $(call KMOD_template,WD1100,wd1100,\
|
|||||||
|
|
||||||
|
|
||||||
$(LINUX_BUILD_DIR)/bzImage: $(LINUX_DIR)/vmlinux
|
$(LINUX_BUILD_DIR)/bzImage: $(LINUX_DIR)/vmlinux
|
||||||
$(MAKE) -C $(LINUX_DIR) TOPDIR=$(LINUX_DIR) ARCH=$(LINUX_KARCH) PATH=$(TARGET_PATH) bzImage
|
$(MAKE) -C $(LINUX_DIR) TOPDIR=$(LINUX_DIR) ARCH=$(LINUX_KARCH) PATH=$(TARGET_PATH) bzImage $(MAKE_TRACE)
|
||||||
cp -f $(LINUX_DIR)/arch/i386/boot/bzImage $@
|
cp -f $(LINUX_DIR)/arch/i386/boot/bzImage $@
|
||||||
touch $@
|
touch $@
|
||||||
|
|
||||||
|
@ -179,9 +179,11 @@ $(PACKAGE_DIR):
|
|||||||
|
|
||||||
$(DL_DIR)/$(LINUX_SOURCE):
|
$(DL_DIR)/$(LINUX_SOURCE):
|
||||||
-mkdir -p $(DL_DIR)
|
-mkdir -p $(DL_DIR)
|
||||||
$(SCRIPT_DIR)/download.pl $(DL_DIR) $(LINUX_SOURCE) $(LINUX_KERNEL_MD5SUM) $(LINUX_SITE)
|
@$(PKG_TRACE) Downloading...
|
||||||
|
$(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)
|
||||||
@ -189,26 +191,27 @@ $(LINUX_DIR)/.unpacked: $(DL_DIR)/$(LINUX_SOURCE)
|
|||||||
touch $(LINUX_DIR)/.unpacked
|
touch $(LINUX_DIR)/.unpacked
|
||||||
|
|
||||||
$(LINUX_DIR)/.patched: $(LINUX_DIR)/.unpacked
|
$(LINUX_DIR)/.patched: $(LINUX_DIR)/.unpacked
|
||||||
$(PATCH) $(LINUX_DIR) ./patches/generic
|
$(PATCH) $(LINUX_DIR) ./patches/generic $(MAKE_TRACE)
|
||||||
[ -d ./patches/$(BOARD) ] && $(PATCH) $(LINUX_DIR) ./patches/$(BOARD)
|
[ -d ./patches/$(BOARD) ] && $(PATCH) $(LINUX_DIR) ./patches/$(BOARD) $(MAKE_TRACE)
|
||||||
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) -C $(LINUX_DIR) ARCH=$(LINUX_KARCH) oldconfig $(MAKE_TRACE)
|
||||||
touch $(LINUX_DIR)/.configured
|
touch $(LINUX_DIR)/.configured
|
||||||
|
|
||||||
$(LINUX_DIR)/vmlinux: $(LINUX_DIR)/.configured
|
$(LINUX_DIR)/vmlinux: $(LINUX_DIR)/.configured
|
||||||
$(MAKE) -C $(LINUX_DIR) CROSS_COMPILE=$(TARGET_CROSS) ARCH=$(LINUX_KARCH) PATH=$(TARGET_PATH)
|
$(MAKE) -C $(LINUX_DIR) CROSS_COMPILE=$(TARGET_CROSS) ARCH=$(LINUX_KARCH) PATH=$(TARGET_PATH) $(MAKE_TRACE)
|
||||||
|
|
||||||
$(LINUX_KERNEL): $(LINUX_DIR)/vmlinux
|
$(LINUX_KERNEL): $(LINUX_DIR)/vmlinux
|
||||||
$(TARGET_CROSS)objcopy -O binary -R .reginfo -R .note -R .comment -R .mdebug -S $< $@
|
$(TARGET_CROSS)objcopy -O binary -R .reginfo -R .note -R .comment -R .mdebug -S $< $@ $(MAKE_TRACE)
|
||||||
touch -c $(LINUX_KERNEL)
|
touch -c $(LINUX_KERNEL)
|
||||||
|
|
||||||
$(LINUX_DIR)/.modules_done: $(LINUX_KERNEL) $(LINUX_IMAGE)
|
$(LINUX_DIR)/.modules_done: $(LINUX_KERNEL) $(LINUX_IMAGE)
|
||||||
rm -rf $(LINUX_BUILD_DIR)/modules
|
rm -rf $(LINUX_BUILD_DIR)/modules
|
||||||
$(MAKE) -C $(LINUX_DIR) CROSS_COMPILE=$(TARGET_CROSS) ARCH=$(LINUX_KARCH) PATH=$(TARGET_PATH) modules
|
$(MAKE) -C $(LINUX_DIR) CROSS_COMPILE=$(TARGET_CROSS) ARCH=$(LINUX_KARCH) PATH=$(TARGET_PATH) modules $(MAKE_TRACE)
|
||||||
$(MAKE) -C $(LINUX_DIR) CROSS_COMPILE=$(TARGET_CROSS) ARCH=$(LINUX_KARCH) PATH=$(TARGET_PATH) DEPMOD=true INSTALL_MOD_PATH=$(LINUX_BUILD_DIR)/modules modules_install
|
$(MAKE) -C $(LINUX_DIR) CROSS_COMPILE=$(TARGET_CROSS) ARCH=$(LINUX_KARCH) PATH=$(TARGET_PATH) DEPMOD=true INSTALL_MOD_PATH=$(LINUX_BUILD_DIR)/modules modules_install $(MAKE_TRACE)
|
||||||
touch $(LINUX_DIR)/.modules_done
|
touch $(LINUX_DIR)/.modules_done
|
||||||
|
|
||||||
$(STAGING_DIR)/include/linux/version.h: $(LINUX_DIR)/.configured
|
$(STAGING_DIR)/include/linux/version.h: $(LINUX_DIR)/.configured
|
||||||
@ -229,10 +232,16 @@ $(KERNEL_IPKG):
|
|||||||
fi
|
fi
|
||||||
$(IPKG_BUILD) $(KERNEL_IDIR) $(LINUX_BUILD_DIR)
|
$(IPKG_BUILD) $(KERNEL_IDIR) $(LINUX_BUILD_DIR)
|
||||||
|
|
||||||
|
$(STAMP_DIR)/.linux-compile: $(LINUX_DIR)/.modules_done
|
||||||
|
@mkdir -p $(STAMP_DIR)
|
||||||
|
@$(MAKE) $(TARGETS)
|
||||||
|
touch $@
|
||||||
|
|
||||||
source: $(DL_DIR)/$(LINUX_SOURCE)
|
source: $(DL_DIR)/$(LINUX_SOURCE)
|
||||||
prepare: $(LINUX_DIR)/.configured
|
prepare: $(LINUX_DIR)/.configured
|
||||||
compile: $(LINUX_DIR)/.modules_done $(TARGETS)
|
compile:
|
||||||
|
@$(PKG_TRACE) Compiling...
|
||||||
|
$(MAKE) $(STAMP_DIR)/.linux-compile $(MAKE_TRACE)
|
||||||
ln -sf $(LINUX_BUILD_DIR)/linux-$(LINUX_VERSION) $(LINUX_DIR)
|
ln -sf $(LINUX_BUILD_DIR)/linux-$(LINUX_VERSION) $(LINUX_DIR)
|
||||||
@$(TRACE) target/linux/package
|
@$(TRACE) target/linux/package
|
||||||
$(MAKE) -C $(TOPDIR)/target/linux/package \
|
$(MAKE) -C $(TOPDIR)/target/linux/package \
|
||||||
@ -246,7 +255,7 @@ install: compile $(TARGET_MODULES_DIR) $(KERNEL_IPKG)
|
|||||||
$(MAKE) -C $(TOPDIR)/target/linux/package \
|
$(MAKE) -C $(TOPDIR)/target/linux/package \
|
||||||
$(KPKG_MAKEOPTS) \
|
$(KPKG_MAKEOPTS) \
|
||||||
install
|
install
|
||||||
[ "$(INSTALL_TARGETS)" != "" ] && $(IPKG_KERNEL) install $(INSTALL_TARGETS) || true
|
@{ [ "$(INSTALL_TARGETS)" != "" ] && $(IPKG_KERNEL) install $(INSTALL_TARGETS) || true } $(MAKE_TRACE)
|
||||||
|
|
||||||
mostlyclean:
|
mostlyclean:
|
||||||
rm -f $(LINUX_BUILD_DIR)/linux-$(LINUX_VERSION)/.modules_done
|
rm -f $(LINUX_BUILD_DIR)/linux-$(LINUX_VERSION)/.modules_done
|
||||||
@ -262,5 +271,7 @@ rebuild:
|
|||||||
$(MAKE) compile
|
$(MAKE) compile
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
@$(PKG_TRACE) Cleaning...
|
||||||
|
rm -f $(STAMP_DIR)/.linux-compile
|
||||||
rm -rf $(LINUX_BUILD_DIR)
|
rm -rf $(LINUX_BUILD_DIR)
|
||||||
rm -f $(TARGETS)
|
rm -f $(TARGETS)
|
||||||
|
@ -42,8 +42,11 @@ $(IPKG_OPENWRT): $(IDIR_OPENWRT)
|
|||||||
$(RSTRIP) $(IDIR_OPENWRT)
|
$(RSTRIP) $(IDIR_OPENWRT)
|
||||||
$(IPKG_BUILD) $(IDIR_OPENWRT) $(PACKAGE_DIR)
|
$(IPKG_BUILD) $(IDIR_OPENWRT) $(PACKAGE_DIR)
|
||||||
|
|
||||||
install: compile
|
install: compile openwrt-install
|
||||||
|
|
||||||
|
openwrt-install:
|
||||||
$(IPKG) install $(IPKG_OPENWRT)
|
$(IPKG) install $(IPKG_OPENWRT)
|
||||||
|
|
||||||
compile: install-dev $(IPKG_OPENWRT)
|
compile: install-dev $(IPKG_OPENWRT)
|
||||||
install-dev:
|
install-dev:
|
||||||
mkdir -p $(STAGING_DIR)/usr/include
|
mkdir -p $(STAGING_DIR)/usr/include
|
||||||
|
@ -43,7 +43,7 @@ ifneq ($(6),)
|
|||||||
done
|
done
|
||||||
endif
|
endif
|
||||||
$(8)
|
$(8)
|
||||||
$(IPKG_BUILD) $$(I_$(1)) $(PACKAGE_DIR)
|
$(IPKG_BUILD) $$(I_$(1)) $(PACKAGE_DIR) $(MAKE_TRACE)
|
||||||
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
@ -17,19 +17,22 @@ 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):
|
||||||
$(SCRIPT_DIR)/download.pl $(DL_DIR) $(LZMA_SOURCE) $(LZMA_MD5) $(LZMA_SITE)
|
@$(PKG_TRACE) Downloading...
|
||||||
|
$(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
|
patch -d $(LZMA_DIR) -p1 < lzma-406-zlib-stream.patch $(MAKE_TRACE)
|
||||||
touch $(LZMA_DIR)/.unpacked
|
touch $(LZMA_DIR)/.unpacked
|
||||||
|
|
||||||
$(LZMA_LIB_DIR)/liblzma.a: $(LZMA_DIR)/.unpacked
|
$(LZMA_ALONE_DIR)/lzma $(LZMA_LIB_DIR)/liblzma.a: $(LZMA_DIR)/.built
|
||||||
$(MAKE) -C $(LZMA_LIB_DIR)
|
$(LZMA_DIR)/.built: $(LZMA_DIR)/.unpacked
|
||||||
|
@$(PKG_TRACE) Compiling...
|
||||||
$(LZMA_ALONE_DIR)/lzma: $(LZMA_DIR)/.unpacked
|
$(MAKE) -C $(LZMA_LIB_DIR) $(MAKE_TRACE)
|
||||||
$(MAKE) -C $(LZMA_ALONE_DIR)
|
$(MAKE) -C $(LZMA_ALONE_DIR) $(MAKE_TRACE)
|
||||||
|
touch $@
|
||||||
|
|
||||||
lzma: $(TARGETS)
|
lzma: $(TARGETS)
|
||||||
cp -f $^ $(LZMA_DIR)
|
cp -f $^ $(LZMA_DIR)
|
||||||
@ -37,8 +40,9 @@ lzma: $(TARGETS)
|
|||||||
lzma-source: $(DL_DIR)/$(LZMA_SOURCE)
|
lzma-source: $(DL_DIR)/$(LZMA_SOURCE)
|
||||||
|
|
||||||
lzma-clean:
|
lzma-clean:
|
||||||
-$(MAKE) -C $(LZMA_LIB_DIR) clean
|
@$(PKG_TRACE) Cleaining...
|
||||||
-$(MAKE) -C $(LZMA_ALONE_DIR) clean
|
-$(MAKE) -C $(LZMA_LIB_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
|
||||||
|
|
||||||
lzma-dirclean:
|
lzma-dirclean:
|
||||||
|
Loading…
Reference in New Issue
Block a user