diff options
author | luigi <luigi@FreeBSD.org> | 2007-11-14 05:42:54 +0000 |
---|---|---|
committer | luigi <luigi@FreeBSD.org> | 2007-11-14 05:42:54 +0000 |
commit | 797a1fb530d34c31f12117fb8d185d501d06b325 (patch) | |
tree | 194cd2fb0bafd95b10bd86acf8440a0620a87f8d /release/picobsd/build | |
parent | 6d4e69c926bbfd0c409e17a54f1f3dfde357f5a0 (diff) | |
download | FreeBSD-src-797a1fb530d34c31f12117fb8d185d501d06b325.zip FreeBSD-src-797a1fb530d34c31f12117fb8d185d501d06b325.tar.gz |
Fix picobsd builds. Changes include:
- use proper make configuration for the build, using
${BINMAKE} as evaluated by ${VERSION}/src/Makefile
- remove -lmytinfo from crunch.conf
- remove support for login_access in tinyware/login
- remove "machine i386" from the kernel config file
It might actually be interesting to extend the script to do
a cross build for !i386 ...
MFC after: 3 days
Diffstat (limited to 'release/picobsd/build')
-rw-r--r-- | release/picobsd/build/Makefile.conf | 5 | ||||
-rwxr-xr-x | release/picobsd/build/picobsd | 11 |
2 files changed, 9 insertions, 7 deletions
diff --git a/release/picobsd/build/Makefile.conf b/release/picobsd/build/Makefile.conf index c4f048b..22077b0 100644 --- a/release/picobsd/build/Makefile.conf +++ b/release/picobsd/build/Makefile.conf @@ -9,6 +9,7 @@ # When building a kernel, also need ${name} from the environment # and CONFIG may indicate an alternate config program +BINMAKE?=make SRC?=/usr/src CONFIG?=config MODULES?=-DNO_MODULES # do not build them as a default @@ -38,11 +39,11 @@ ${BUILDDIR}/kernel: ${KERNFILE} ${KERNFILE}: ${COMPILE} do_a_make_in_the_kernel_directory_anyways do_a_make_in_the_kernel_directory_anyways: - (cd ${COMPILE}; make KERNEL=kernel ${MODULES} ) + (cd ${COMPILE}; ${BINMAKE} KERNEL=kernel ${MODULES} ) ${COMPILE}: ${CONF}/${CONFFILE} (cd ${CONF}; ${CONFIG} -d ${COMPILE} ${CONFFILE}; \ - cd ${COMPILE}; make KERNEL=kernel ${MODULES} depend ) + cd ${COMPILE}; ${BINMAKE} KERNEL=kernel ${MODULES} depend ) ${CONF}/${CONFFILE}: PICOBSD # -mkdir -p ${CONF} # XXX not needed yet. diff --git a/release/picobsd/build/picobsd b/release/picobsd/build/picobsd index 974316d..42ee329 100755 --- a/release/picobsd/build/picobsd +++ b/release/picobsd/build/picobsd @@ -282,8 +282,9 @@ build_image() { if [ ${OSVERSION} -ge 500035 ] ; then MAKEOBJDIRPREFIX=${l_objtree} export MAKEOBJDIRPREFIX + eval "export BINMAKE=\"`cd ${SRC}; make -f Makefile -V BINMAKE`\"" log `cd ${SRC}; make -f Makefile.inc1 -V WMAKEENV` - eval export `cd ${SRC}; make -f Makefile.inc1 -V WMAKEENV` + eval export `cd ${SRC}; ${BINMAKE} -f Makefile.inc1 -V WMAKEENV` fi # create build directory and subtree mkdir -p ${BUILDDIR}/crunch @@ -463,7 +464,7 @@ do_kernel() { # OK MODULES="" export MODULES fi - make -m ${SRC}/share/mk -v -f ${PICO_TREE}/build/Makefile.conf ) || \ + ${BINMAKE} -v -f ${PICO_TREE}/build/Makefile.conf ) || \ fail $? missing_kernel } @@ -491,8 +492,8 @@ populate_floppy_fs() { # OK excl=${MY_TREE}/floppy.tree.exclude if [ -f ${excl} ] ; then - excl="--exclude-from ${excl}" log "Files excluded from generic tree: `echo;cat ${excl}`" + excl="--exclude-from ${excl}" else excl="" fi @@ -561,13 +562,13 @@ populate_mfs_tree() { log "Making and installing crunch1 from `pwd` src ${SRC}..." a=${BUILDDIR}/crunch1.conf ( export BUILDDIR SRC MY_TREE PICO_OBJ ; - make -m ${SRC}/share/mk \ + ${BINMAKE} \ -v -f ${PICO_TREE}/build/Makefile.conf ${BUILDDIR}/crunch.mk ) log "Libs are ${LIBS} " export SRC # used by crunch.mk # export LIBS CFLAGS log "Now make -f crunch.mk" - make -m ${SRC}/share/mk ${o_makeopts} -f ${BUILDDIR}/crunch.mk + ${BINMAKE} ${o_makeopts} -f ${BUILDDIR}/crunch.mk strip --remove-section=.note --remove-section=.comment crunch1 mv crunch1 ${dst}/stand/crunch chmod 555 ${dst}/stand/crunch |