Saturday, December 04, 2004

Overview of using Ptxdist-0.4

Files used for build process.
The topdir makefile Makefile starts the build process.

make menuconfig cause a program called mconfig run against
a configuration file ./config/Config.in

The Config.in file will toggle values that can
be used globally through out the build system.

For a given menu option:

config GENERIC_OPTION
bool
prompt "User generic option"
default n
depends on PREVIOUS_OPTION

a macro will be defined PTXCONF_GENERIC_OPTION
that can be used in the make files in ./rules
directories

ifeq (y, $(PTXCONF_GENERIC_OPTION))
#Do something here
endif

note that the top leve makefile includes
all the makefiles from the directory ./rules
the decision on where or not to make the
package is controlled by a statement at
the beginning of the make file:

ifeq (y, $(PTXCONF_PACKAGE))
PACKAGES += packagename
endif

No comments: