Changeset View
Changeset View
Standalone View
Standalone View
head/release/picobsd/build/Makefile.conf
Show All 37 Lines | ${BUILDDIR}/kernel: ${KERNFILE} | ||||
strip --remove-section=.note --remove-section=.comment ${.TARGET} | strip --remove-section=.note --remove-section=.comment ${.TARGET} | ||||
${KERNFILE}: ${COMPILE} do_a_make_in_the_kernel_directory_anyways | ${KERNFILE}: ${COMPILE} do_a_make_in_the_kernel_directory_anyways | ||||
do_a_make_in_the_kernel_directory_anyways: | do_a_make_in_the_kernel_directory_anyways: | ||||
(cd ${COMPILE}; ${BINMAKE} KERNEL=kernel ${MODULES} ) | (cd ${COMPILE}; ${BINMAKE} KERNEL=kernel ${MODULES} ) | ||||
${COMPILE}: ${CONF}/${CONFFILE} | ${COMPILE}: ${CONF}/${CONFFILE} | ||||
(cd ${CONF}; ${CONFIG} -d ${COMPILE} ${CONFFILE}; \ | cd ${CONF}; ${CONFIG} -d ${COMPILE} ${CONFFILE} | ||||
cd ${COMPILE}; ${BINMAKE} KERNEL=kernel ${MODULES} depend ) | |||||
${CONF}/${CONFFILE}: ${KERNCONF} | ${CONF}/${CONFFILE}: ${KERNCONF} | ||||
# -mkdir -p ${CONF} # XXX not needed yet. | # -mkdir -p ${CONF} # XXX not needed yet. | ||||
cp ${.OODATE} ${.TARGET} | cp ${.OODATE} ${.TARGET} | ||||
[ -f PICOBSD.hints ] && cp PICOBSD.hints ${CONF}/ | [ -f PICOBSD.hints ] && cp PICOBSD.hints ${CONF}/ | ||||
# This part creates crunch1.conf and crunch.mk from crunch.conf | # This part creates crunch1.conf and crunch.mk from crunch.conf | ||||
${BUILDDIR}/crunch.mk: ${BUILDDIR}/crunch1.conf | ${BUILDDIR}/crunch.mk: ${BUILDDIR}/crunch1.conf | ||||
-(cd ${BUILDDIR}/crunch ; \ | -(cd ${BUILDDIR}/crunch ; \ | ||||
crunchgen -p ${PICO_OBJ} -o -m ${.TARGET} ${.OODATE} ) | crunchgen -p ${PICO_OBJ} -o -m ${.TARGET} ${.OODATE} ) | ||||
${BUILDDIR}/crunch1.conf: ${MY_TREE}/crunch.conf | ${BUILDDIR}/crunch1.conf: ${MY_TREE}/crunch.conf | ||||
(cd ${BUILDDIR}/crunch ; cat ${.OODATE} | \ | (cd ${BUILDDIR}/crunch ; cat ${.OODATE} | \ | ||||
sed -e "s@/usr/src@${SRC}@" -e "s+@__CWD__@+${MY_TREE}+" > ${.TARGET} ) | sed -e "s@/usr/src@${SRC}@" -e "s+@__CWD__@+${MY_TREE}+" > ${.TARGET} ) |