Changeset 28503 for trunk/scripts/feeds


Ignore:
Timestamp:
2011-10-21T15:03:37+02:00 (5 years ago)
Author:
nbd
Message:

scripts/feeds: override the OPENWRT_BUILD variable when calling internal targets (based on patch from #10212)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/scripts/feeds

    r26988 r28503  
    9595        -d "./feeds/$name.tmp/info" or mkdir "./feeds/$name.tmp/info" or return 1; 
    9696 
    97         system("$mk -s prepare-mk TMP_DIR=\"$ENV{TOPDIR}/feeds/$name.tmp\""); 
     97        system("$mk -s prepare-mk OPENWRT_BUILD= TMP_DIR=\"$ENV{TOPDIR}/feeds/$name.tmp\""); 
    9898        system("$mk -s -f include/scan.mk IS_TTY=1 SCAN_TARGET=\"packageinfo\" SCAN_DIR=\"feeds/$name\" SCAN_NAME=\"package\" SCAN_DEPS=\"$ENV{TOPDIR}/include/package*.mk\" SCAN_DEPTH=5 SCAN_EXTRA=\"\" TMP_DIR=\"$ENV{TOPDIR}/feeds/$name.tmp\""); 
    9999        system("ln -sf $name.tmp/.packageinfo ./feeds/$name.index"); 
     
    186186 
    187187sub get_installed() { 
    188         system("$mk -s prepare-tmpinfo"); 
     188        system("$mk -s prepare-tmpinfo OPENWRT_BUILD="); 
    189189        clear_packages(); 
    190190        parse_package_metadata("./tmp/.packageinfo"); 
Note: See TracChangeset for help on using the changeset viewer.