imagebuilder: clean opkg files if requested (patch from #9866)
authorFelix Fietkau <nbd@openwrt.org>
Mon, 1 Aug 2011 23:58:11 +0000 (23:58 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Mon, 1 Aug 2011 23:58:11 +0000 (23:58 +0000)
SVN-Revision: 27872

target/imagebuilder/files/Makefile

index 002274acaf1785bd2713dc68dd204c9689ef4e61..902568b6dd553248dcc4317ec7de0a1e326ff315 100644 (file)
@@ -140,6 +140,7 @@ package_postinst: FORCE
                        IPKG_INSTROOT=$(TARGET_DIR) $(which bash) ./etc/rc.common $$script enable; \
                done || true; \
        )
+       $(if $(CONFIG_CLEAN_IPKG),rm -rf $(TARGET_DIR)/usr/lib/opkg)
 
 build_image: FORCE
        @echo