Clearing staging directory contents for a particular package

Hi !

I can use the below command to compile a particular package
make -j1 package/<package_name>/{clean,compile}
The clean command just clears the package contents in build_dir/targetXX/
How to clean the installed binaries (staging directory) for this particular package without having to clear them manually.

Thanks,
Dhaar.

https://openwrt.org/docs/guide-developer/toolchain/use-buildsystem#cleaning_up

make dirclean should do it.

1 Like