phase1: run package/cleanup before package/compile
authorFelix Fietkau <nbd@nbd.name>
Sun, 22 Jan 2017 12:50:01 +0000 (13:50 +0100)
committerFelix Fietkau <nbd@nbd.name>
Sun, 22 Jan 2017 12:50:06 +0000 (13:50 +0100)
This is done by the full make run as well, and it cleans up
STAGING_DIR_ROOT/

Signed-off-by: Felix Fietkau <nbd@nbd.name>
phase1/master.cfg

index adf3cff407e1182d7fd91cdeaf46867369a4eb92..ae69309ecef9464a3879bd2cb577856609a21be6 100644 (file)
@@ -563,6 +563,12 @@ for target in targets:
                haltOnFailure = True
        ))
 
+       factory.addStep(ShellCommand(
+               name = "pkgclean",
+               description = "Cleaning up package build",
+               command=["make", "package/cleanup", "V=s"]
+       ))
+
        factory.addStep(ShellCommand(
                name = "pkgbuild",
                description = "Building packages",