summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Config.in12
-rw-r--r--Makefile7
-rw-r--r--mk/build.mk24
-rw-r--r--mk/image.mk12
-rw-r--r--mk/kernel-build.mk6
-rw-r--r--mk/kernel-vars.mk8
-rw-r--r--mk/modules.mk4
-rw-r--r--mk/package.mk2
-rw-r--r--mk/pkg-bottom.mk2
-rw-r--r--package/Config.in4
-rw-r--r--package/Makefile1
-rw-r--r--package/busybox/Makefile12
-rw-r--r--package/busybox/patches/patch-include_libbb_h18
-rw-r--r--package/busybox/patches/patch-include_platform_h47
-rw-r--r--package/cfgfs/Config.in2
-rw-r--r--package/cfgfs/Makefile9
-rw-r--r--package/iptables/Config.in10
-rw-r--r--package/iptables/Makefile6
-rw-r--r--package/linux-atm/Config.in10
-rw-r--r--package/linux-atm/Config.in.lib10
-rw-r--r--package/linux-atm/Makefile12
-rw-r--r--package/linux-atm/patches/patch-src_Makefile_in12
-rw-r--r--package/linux-atm/patches/patch-src_led_main_c11
-rw-r--r--package/linux-atm/patches/patch-src_qgen_Makefile_in29
-rw-r--r--package/linux-atm/patches/patch-src_qgen_ql_l_c12
-rw-r--r--package/linux-atm/patches/patch-src_sigd_Makefile_in7
-rw-r--r--package/linux-atm/patches/patch-src_sigd_cfg_l_c12
-rw-r--r--package/linux-atm/patches/patch-src_sigd_cfg_l_l10
-rw-r--r--package/linux-atm/patches/patch-src_switch_Makefile_in11
-rw-r--r--package/linux-atm/patches/patch-src_switch_cfg_l_c12
-rw-r--r--package/linux-atm/patches/patch-src_switch_cfg_l_l10
-rw-r--r--package/linux-atm/patches/patch-src_switch_debug_Makefile_in7
-rw-r--r--package/linux-atm/patches/patch-src_switch_tcp_Makefile_in9
-rw-r--r--package/linux-atm/patches/patch-src_test_Makefile_in12
-rw-r--r--package/linux-atm/patches/patch-src_test_ispl_l_c12
-rw-r--r--package/linux-atm/patches/patch-src_test_ttcp_c21
-rw-r--r--package/mtd/Config.in9
-rw-r--r--package/mtd/Makefile32
-rw-r--r--package/mtd/src/mtd.c (renamed from package/cfgfs/src/mtd.c)0
-rw-r--r--package/ppp/Config.in12
-rw-r--r--package/ppp/Makefile23
-rw-r--r--package/ppp/files/etc/ppp/filter23
-rwxr-xr-xpackage/ppp/files/etc/ppp/ip-up.d/if-rename17
-rw-r--r--package/ppp/files/etc/ppp/peers/dsl12
-rw-r--r--package/ppp/files/etc/ppp/templates/pppoa5
-rw-r--r--package/ppp/files/etc/ppp/templates/pppoe (renamed from package/ppp/files/etc/ppp/templates/dsl)0
-rwxr-xr-xpackage/ppp/files/poff26
-rwxr-xr-xpackage/ppp/files/pon6
-rwxr-xr-xpackage/ppp/files/ppp.pre-up119
-rw-r--r--package/ppp/patches/patch-pppd_ipv6cp_c10
-rw-r--r--package/ppp/utils/pfc.c51
-rw-r--r--package/sangam-atm/Config.in23
-rw-r--r--package/sangam-atm/Makefile41
-rw-r--r--package/sangam-atm/patches/patch-Makefile29
-rw-r--r--package/sangam-atm/patches/patch-cp_sar_reg_h8
-rw-r--r--package/sangam-atm/patches/patch-cppi_cpaal5_c11
-rw-r--r--package/sangam-atm/patches/patch-dev_host_interface_h11
-rw-r--r--package/sangam-atm/patches/patch-dsl_hal_advcfg_c15
-rw-r--r--package/sangam-atm/patches/patch-dsl_hal_api_c107
-rw-r--r--package/sangam-atm/patches/patch-dsl_hal_support_c52
-rw-r--r--package/sangam-atm/patches/patch-dsl_hal_support_h11
-rw-r--r--package/sangam-atm/patches/patch-tn7api_h17
-rw-r--r--package/sangam-atm/patches/patch-tn7atm_c633
-rw-r--r--package/sangam-atm/patches/patch-tn7atm_h56
-rw-r--r--package/sangam-atm/patches/patch-tn7dsl_c639
-rw-r--r--package/sangam-atm/patches/patch-tn7sar_c79
-rw-r--r--package/squid/Config.in3
-rw-r--r--package/uclibc/Makefile4
-rw-r--r--rules.mk6
-rw-r--r--scripts/ipkg-build4
-rw-r--r--scripts/scan-tools.sh21
-rw-r--r--target/Config.in28
-rw-r--r--target/ag241/Makefile57
-rw-r--r--target/ag241/TODO3
-rw-r--r--target/ag241/files/etc/inittab3
-rw-r--r--target/ag241/files/etc/mdev.conf10
-rw-r--r--target/ag241/kernel.config914
-rw-r--r--target/ag241/patches/ar7.patch151
-rw-r--r--target/ag241/target.mk7
-rw-r--r--target/ag241/tools/addpattern/Makefile4
-rw-r--r--target/ag241/tools/addpattern/addpattern.c255
-rw-r--r--target/ag241/tools/rules.mk9
-rw-r--r--target/ag241/tools/squashfs/Makefile27
-rw-r--r--target/ag241/tools/srec2bin/Makefile4
-rw-r--r--target/ag241/tools/srec2bin/srec2bin.c524
-rw-r--r--target/ag241/uclibc.config233
-rw-r--r--target/alix2d/target.mk4
-rw-r--r--target/foxboard/target.mk4
-rw-r--r--target/g1/target.mk4
-rw-r--r--target/linux/config/Config.in.fs4
-rw-r--r--target/linux/config/Config.in.netdevice7
-rw-r--r--target/linux/config/Config.in.network56
-rw-r--r--target/linux/patches/2.6.31.5/aufs2.patch24455
-rw-r--r--target/linux/patches/2.6.31.5/cris-initrd.patch14
-rw-r--r--target/linux/patches/2.6.31.5/cygwin-compat.patch66
-rw-r--r--target/linux/patches/2.6.31.5/freebsd-compat.patch11
-rw-r--r--target/linux/patches/2.6.31.5/mtd-root.patch62
-rw-r--r--target/linux/patches/2.6.31.5/ocf.patch23653
-rw-r--r--target/linux/patches/2.6.31.5/startup.patch20
-rw-r--r--target/linux/patches/2.6.31.5/swconfig.patch1075
-rw-r--r--target/linux/patches/2.6.31.5/yaffs2.patch15066
-rw-r--r--target/linux/patches/2.6.32/bsd-compatibility.patch2513
-rw-r--r--target/linux/patches/2.6.32/cc-abstract.patch14
-rw-r--r--target/native/target.mk4
-rw-r--r--target/qemu-arm/target.mk4
-rw-r--r--target/qemu-cris/target.mk4
-rw-r--r--target/qemu-mips64/target.mk4
-rw-r--r--target/qemu-mips64el/target.mk4
-rw-r--r--target/qemu-mipsel/target.mk4
-rw-r--r--target/rb411/target.mk4
-rw-r--r--target/rb433/target.mk4
-rw-r--r--target/rescue-x86/target.mk4
-rw-r--r--target/rescue-x86_64/target.mk4
-rw-r--r--target/shuttle/target.mk4
-rw-r--r--target/tomtom/target.mk4
-rw-r--r--target/wag54g/target.mk4
-rw-r--r--target/wrap/target.mk4
-rw-r--r--target/zaurus/target.mk4
-rw-r--r--toolchain/gcc/Makefile1
-rw-r--r--toolchain/kernel-headers/Makefile6
120 files changed, 7013 insertions, 64831 deletions
diff --git a/Config.in b/Config.in
index 3f107feaf..8970fc779 100644
--- a/Config.in
+++ b/Config.in
@@ -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
diff --git a/Makefile b/Makefile
index 095336f08..6a5609fd2 100644
--- a/Makefile
+++ b/Makefile
@@ -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:
diff --git a/mk/kernel-build.mk b/mk/kernel-build.mk
index c32964c10..3c594ef90 100644
--- a/