source: debwrt/trunk/openwrt/patches/004_save_environment_variables @ 2

Last change on this file since 2 was 2, checked in by amain, 13 years ago

Add OpenWrt checkout, patch and menuconfig.
Add general support for shell scripts and make functions
Set DebWrt RELEASE and REVISION

File size: 1.0 KB
Line 
1--- Makefile.org        2010-01-24 18:57:24.720963292 +0100
2+++ Makefile    2010-01-24 19:29:28.751015782 +0100
3@@ -72,8 +72,16 @@
4 # check prerequisites before starting to build
5 prereq: $(target/stamp-prereq) tmp/.prereq_packages
6 
7+con:
8+       echo "OPENWRT_BIN_DIR=$(BIN_DIR)" > $(TOPDIR)/.openwrt_env
9+       echo "OPENWRT_PACKAGE_DIR=$(PACKAGE_DIR)" >> $(TOPDIR)/.openwrt_env
10+       echo "OPENWRT_TMP_DIR=$(TMP_DIR)" >> $(TOPDIR)/.openwrt_env
11+       #
12+       # LINUX_VERSION is saved from include/kernel-defaults.mk
13+       #
14+
15 prepare: .config $(tools/stamp-install) $(toolchain/stamp-install)
16-world: prepare $(target/stamp-compile) $(package/stamp-cleanup) $(package/stamp-compile) $(package/stamp-install) $(package/stamp-rootfs-prepare) $(target/stamp-install) FORCE
17+world: con prepare $(target/stamp-compile) $(package/stamp-cleanup) $(package/stamp-compile) $(package/stamp-install) $(package/stamp-rootfs-prepare) $(target/stamp-install) con FORCE
18        $(_SINGLE)$(SUBMAKE) -r package/index
19 
20 # update all feeds, re-create index files, install symlinks
Note: See TracBrowser for help on using the repository browser.