source: trunk/openwrt/patches/lede/all/041_save_environment_variables @ 884

Last change on this file since 884 was 884, checked in by amain, 3 years ago

Add LEDE support. LEDE is (for now) the new default.

File size: 920 bytes
Line 
1Index: trunk-HEAD/Makefile
2===================================================================
3--- trunk-HEAD.orig/Makefile
4+++ trunk-HEAD/Makefile
5@@ -87,8 +87,16 @@ prereq: $(target/stamp-prereq) tmp/.prer
6 checksum: FORCE
7        $(call sha256sums,$(BIN_DIR))
8 
9+con:
10+       echo "OPENWRT_BIN_DIR=$(BIN_DIR)" > $(TOPDIR)/.openwrt_env
11+       echo "OPENWRT_PACKAGE_DIR=$(PACKAGE_DIR)" >> $(TOPDIR)/.openwrt_env
12+       echo "OPENWRT_TMP_DIR=$(TMP_DIR)" >> $(TOPDIR)/.openwrt_env
13+       #
14+       # LINUX_VERSION is saved from include/kernel-defaults.mk
15+       #
16+
17 prepare: .config $(tools/stamp-install) $(toolchain/stamp-install)
18-world: prepare $(target/stamp-compile) $(package/stamp-compile) $(package/stamp-install) $(target/stamp-install) FORCE
19+world: con prepare $(target/stamp-compile) $(package/stamp-compile) $(package/stamp-install) $(target/stamp-install) con FORCE
20        $(_SINGLE)$(SUBMAKE) -r package/index
21        $(_SINGLE)$(SUBMAKE) -r checksum
22 
Note: See TracBrowser for help on using the repository browser.