[Buildroot] Including target makefiles before package makefiles
philipp_subx at redfish-solutions.com
Wed Nov 26 23:41:21 UTC 2008
Sorry if this is obvious or has been discussed much at length... I'm
relatively new to the development discussion.
I've recently become one of the defacto maintainers of the AstLinux
distro on sourceforge, and was trying to make version bumps of various
packages a little simpler. A lot of the makefiles being used were
inherited from a fairly old version of buildroot, but I couldn't say
which or what its direct provenance was (it might have been borrowed
from openwrt, I'm not sure).
In any case, I noticed that there was:
which stopped me from doing something like:
LINUX_VERSION_MAJOR:=$(word 1,$(subst .,$(space),$(LINUX_VERSION)))
LINUX_VERSION_MINOR:=$(word 2,$(subst .,$(space),$(LINUX_VERSION)))
LINUX_VERSION_TRIPLE:=$(subst, $(space),.,$(wordlist 1,3,$(subst
because IPROUTE2_VER would get parsed before LINUX_VERSION_TRIPLE.
Which got me thinking: the tools don't care about anything else.
Therefore toolchain should always come first. The package shouldn't
influence the OS version, but the OS version often influences the
package version (for compatibility reasons). Therefore, the packages
should be read after the target info. So, the proper version of
includes should be:
Have I misunderstood anything? Someone want to set me straight?
More information about the buildroot