Skip to content
Snippets Groups Projects
Select Git revision
  • 09a09d634a6608fbbff3a9295af278b99be77144
  • v2018.2.x default protected
  • 0x4A6F-rpi4
  • 0x4A6F-master
  • master
  • v2018.2.2-ffs
  • v2016.2.4-batmanbug
  • radv-filterd
  • v2016.2.x
  • hoodselector
  • v2016.1.x
  • babel
  • v2015.1.x
  • 2014.4.x
  • 2014.3.x
  • v2018.2.2-ffs0.1
  • v2018.2.1-ffs0.1
  • v2018.2.1
  • v2018.2-ffs0.1
  • v2018.2
  • v2018.1.4
  • v2018.1.3
  • v2018.1.2
  • v2018.1.1
  • v2018.1
  • v2017.1.8
  • v2017.1.7
  • v2017.1.6
  • v2017.1.5
  • v2017.1.4
  • v2017.1.3
  • v2017.1.2
  • v2016.2.7
  • v2017.1.1
  • v2017.1
35 results

clean_output.lua

Blame
  • Forked from firmware / FFS Gluon
    Source project has a limited visibility.
    clean_output.lua 466 B
    local lib = dofile('scripts/target_lib.lua')
    local env = lib.env
    
    
    local subtarget = env.SUBTARGET
    if subtarget == '' then
    	subtarget = 'generic'
    end
    
    local bindir = env.BOARD .. '/' .. subtarget
    
    
    lib.exec({'rm', '-f', 'openwrt/bin/targets/'..bindir..'/\0'}, true, '2>/dev/null')
    
    -- Full builds will output the "packages" directory, so clean up first
    if (env.GLUON_DEVICES or '') == '' then
    	lib.exec {'rm', '-rf', 'openwrt/bin/targets/'..bindir..'/packages'}
    end