diff options
120 files changed, 7013 insertions, 64831 deletions
@@ -101,6 +101,18 @@ config ADK_HOST_FREEBSD prompt "FreeBSD" boolean +config ADK_HOST_MIRBSD + prompt "MirBSD" + boolean + +config ADK_HOST_OPENBSD + prompt "OpenBSD" + boolean + +config ADK_HOST_NETBSD + prompt "OpenBSD" + boolean + endchoice endmenu @@ -1,17 +1,18 @@ # This file is part of the OpenADK project. OpenADK is copyrighted # material, please see the LICENCE file in the top-level directory. -CC= gcc +CC?= gcc GMAKE?= $(PWD)/scripts/make GMAKE_FMK= ${GMAKE} -f $(PWD)/mk/build.mk GMAKE_INV= ${GMAKE_FMK} --no-print-directory +_UNLIMIT= ulimit -dS $$(ulimit -dH); all: .prereq_done - @${GMAKE_INV} all + @${_UNLIMIT} ${GMAKE_INV} all v: .prereq_done @(echo; echo "Build started on $$(LC_ALL=C LANGUAGE=C date)"; \ - set -x; ${GMAKE_FMK} VERBOSE=1 all) 2>&1 | tee -a make.log + set -x; ${_UNLIMIT} ${GMAKE_FMK} VERBOSE=1 all) 2>&1 | tee -a make.log help: @echo 'Common targets:' diff --git a/mk/build.mk b/mk/build.mk index 5f7399174..145856d6d 100644 --- a/mk/build.mk +++ b/mk/build.mk @@ -231,6 +231,15 @@ endif ifeq (${OStype},FreeBSD) @echo ADK_HOST_FREEBSD=y > $(TOPDIR)/.defconfig endif +ifeq (${OStype},MirBSD) + @echo ADK_HOST_MIRBSD=y > $(TOPDIR)/.defconfig +endif +ifeq (${OStype},OpenBSD) + @echo ADK_HOST_OPENBSD=y > $(TOPDIR)/.defconfig +endif +ifeq (${OStype},NetBSD) + @echo ADK_HOST_NETBSD=y > $(TOPDIR)/.defconfig +endif @if [ ! -z "$(TARGET)" ];then \ grep "^config" target/Config.in \ |grep -i "$(TARGET)" \ @@ -240,10 +249,10 @@ endif echo $$symbol >> $(TOPDIR)/.defconfig; \ done; \ fi -ifneq (,$(filter %_qemu,${TARGET})) +ifneq (,$(filter qemu%,${TARGET})) @echo ADK_LINUX_QEMU=y >> $(TOPDIR)/.defconfig endif -ifneq (,$(filter %_rescue,${TARGET})) +ifneq (,$(filter rescue%,${TARGET})) @echo ADK_LINUX_RESCUE=y >> $(TOPDIR)/.defconfig endif ifneq (,$(filter rb%,${TARGET})) @@ -260,6 +269,15 @@ endif ifeq (${OStype},FreeBSD) @echo ADK_HOST_FREEBSD=y > $(TOPDIR)/all.config endif +ifeq (${OStype},MirBSD) + @echo ADK_HOST_MIRBSD=y > $(TOPDIR)/all.config +endif +ifeq (${OStype},OpenBSD) + @echo ADK_HOST_OPENBSD=y > $(TOPDIR)/all.config +endif +ifeq (${OStype},NetBSD) + @echo ADK_HOST_NETBSD=y > $(TOPDIR)/all.config +endif @if [ ! -z "$(TARGET)" ];then \ grep "^config" target/Config.in \ |grep -i "$(TARGET)" \ @@ -298,7 +316,7 @@ ifneq (,$(filter rb%,${TARGET})) endif menuconfig: $(CONFIG)/mconf defconfig - if [ ! -f .config ];then \ + @if [ ! -f .config ];then \ $(CONFIG)/conf -D .defconfig $(CONFIG_CONFIG_IN); \ fi @$(CONFIG)/mconf $(CONFIG_CONFIG_IN) diff --git a/mk/image.mk b/mk/image.mk index 50c5d8b95..a720bb1ea 100644 --- a/mk/image.mk +++ b/mk/image.mk @@ -6,8 +6,8 @@ imageprepare: kernel-install image-prepare-post extra-install # if an extra directory exist in TOPDIR, copy all content over the # root directory, do the same if make extra=/dir/to/extra is used extra-install: - if [ -d $(TOPDIR)/extra ];then $(CP) $(TOPDIR)/extra/* ${TARGET_DIR};fi - if [ ! -z $(extra) ];then $(CP) $(extra)/* ${TARGET_DIR};fi + @if [ -d $(TOPDIR)/extra ];then $(CP) $(TOPDIR)/extra/* ${TARGET_DIR};fi + @if [ ! -z $(extra) ];then $(CP) $(extra)/* ${TARGET_DIR};fi image-prepare-post: rng=/dev/arandom; test -e $$rng || rng=/dev/urandom; \ @@ -58,11 +58,11 @@ ${BIN_DIR}/${ROOTFSTARBALL}: ${TARGET_DIR} ${BIN_DIR}/${INITRAMFS}: ${TARGET_DIR} cd ${TARGET_DIR}; find . | sed -n '/^\.\//s///p' | sort | \ - cpio -R 0:0 --quiet -oC512 -Mdist -Hnewc | ${ADK_COMPRESSION_TOOL} >$@ + cpio -R 0:0 -oC512 -Mdist -Hnewc | ${ADK_COMPRESSION_TOOL} >$@ ${BUILD_DIR}/${INITRAMFS_PIGGYBACK}: ${TARGET_DIR} cd ${TARGET_DIR}; find . | sed -n '/^\.\//s///p' | sort | \ - cpio -R 0:0 --quiet -oC512 -Mdist -Hnewc >$@ + cpio -R 0:0 -oC512 -Mdist -Hnewc >$@ ${BIN_DIR}/${ROOTFSSQUASHFS}: ${TARGET_DIR} PATH='${TARGET_PATH}' \ @@ -70,8 +70,8 @@ ${BIN_DIR}/${ROOTFSSQUASHFS}: ${TARGET_DIR} -nopad -noappend -root-owned $(MAKE_TRACE) cat ${BIN_DIR}/${ADK_TARGET}-${ARCH}-kernel ${BUILD_DIR}/root.squashfs > \ ${BUILD_DIR}/${ROOTFSSQUASHFS} - # padding of images is required - dd if=${BUILD_DIR}/${ROOTFSSQUASHFS} of=${BIN_DIR}/${ROOTFSSQUASHFS} \ + # padding of images is required, foxboard only? + #dd if=${BUILD_DIR}/${ROOTFSSQUASHFS} of=${BIN_DIR}/${ROOTFSSQUASHFS} \ bs=4063232 conv=sync $(MAKE_TRACE) imageclean: |