OPNsense Forum

English Forums => Development and Code Review => Topic started by: DanieleZappasodi on May 18, 2022, 09:41:30 am

Title: make "clean-all" equivalent
Post by: DanieleZappasodi on May 18, 2022, 09:41:30 am
Hello,
I need to rebuild OPNSense after an upgrade.
What are the correct steps to clean the build environment (a sort of "make clean-all") before a new make dvd?

Is it enough "make clean-obj"?

Regards,
Daniele
Title: Re: make "clean-all" equivalent
Post by: franco on May 18, 2022, 12:08:55 pm
What are we talking about.. tools.git?


Cheers,
Franco
Title: Re: make "clean-all" equivalent
Post by: DanieleZappasodi on May 18, 2022, 01:03:37 pm
Hello Franco,
yes, I'm in "tools" directory.

I have already built the components (ports, src, plugins ecc. with "make dvd" or other "make ...").
Suppose that somethings went wrong during the build process or there is a new OPNSense version, so I need to run a new "make" of OPNSense.
What is the correct way to perform a new "make"?

Regards,
Daniele
Title: Re: make "clean-all" equivalent
Post by: franco on May 18, 2022, 01:52:16 pm
Hi Daniele,

Well, it depends. :)

Are plugins or core involved?

make hotfix-core
make hotfix-plugins

Are ports involved?

make clean-packages packages

Mind you rebuilding ports again takes a long time. ;)

Base/kernel are just loose components like "packages" concept and can be rebuilt independently.

make kernel-again / make clean-kernel kernel
make base-again / make clean-base base


Cheers,
Franco