Skip to content
Snippets Groups Projects
Select Git revision
  • 3986979da628fad87d26e87ceb46e5b541475d4c
  • master default
  • nrb/rebase-20200624
  • nrb/rebase-recommended
  • nrb/old-deprectated-devices
  • next
6 results

config.js

Blame
  • 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