This task is misleading and potentially quite harmful, as it wipes the entire
DL_DIR, yet tasks are supposed to be recipe specific. We have the proper
distclean task to wipe sources for a recipe + run do_clean, and the user can
always wipe all of DL_DIR manually if necessary.
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Acked-by: Holger Hans Peter Freyther <holger@moiji-mobile.com>
Acked-by: Eric Bénard <eric@eukrea.com>
"""rebuild a package"""
}
-addtask mrproper
-do_mrproper[dirs] = "${TOPDIR}"
-do_mrproper[nostamp] = "1"
-python do_mrproper() {
- """clear downloaded sources, build and temp directories"""
- dir = bb.data.expand("${DL_DIR}", d)
- if dir == '/': bb.build.FuncFailed("wrong DATADIR")
- bb.debug(2, "removing " + dir)
- os.system('rm -rf ' + dir)
- bb.build.exec_func('do_clean', d)
-}
-
addtask distclean
do_distclean[dirs] = "${TOPDIR}"
do_distclean[nostamp] = "1"