We are using buildroot to build the kernel and root file system. The package A has the dependency on package B. I used the "select" keyword in Config.in to select the package B while selecting package A. How can I change the makefiles to build package B before building package A?
Asked
Active
Viewed 4,901 times
2 Answers
2
The answer from Ashok is partially incorrect: his second suggestion is wrong. The only correct way is to use:
<pkg1>_DEPENDENCIES += pkg2
To have pkg2
built before pkg1
.
See the Buildroot manual at http://buildroot.org/downloads/manual/manual.html#adding-packages for all the details about adding new packages in Buildroot.

Thomas Petazzoni
- 5,636
- 17
- 25
1
Explicit dependency needs to be specified in the makefile targets to build package B before building package A.
PACKAGE_A_DEPENDENCIES += PACKAGE_B
PACKAGE_A_TARGET: $(PACKAGE_A_DEPENDENCIES)
In the above case, the package B will be built before building package A.

Ashok Vairavan
- 1,862
- 1
- 15
- 21