summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2010-06-07 12:34:57 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2010-06-07 12:34:57 +0200
commitd22b78be7b2b95ba028c6584e9ee5abb69a375cb (patch)
tree039da0ef61265cda4512279d36aea46c4670a715 /mk
parent702e216210d58f1301c80d4e55af5d29f813eb19 (diff)
parent2e2eee9052d2c487d7114818ca446c370dba7f49 (diff)
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'mk')
-rw-r--r--mk/build.mk6
-rw-r--r--mk/image.mk10
-rw-r--r--mk/modules.mk14
-rw-r--r--mk/rootfs.mk9
4 files changed, 28 insertions, 11 deletions
diff --git a/mk/build.mk b/mk/build.mk
index c143bbab2..359569826 100644
--- a/mk/build.mk
+++ b/mk/build.mk
@@ -13,9 +13,11 @@ CONFIG = config
DEFCONFIG= ADK_DEVELSYSTEM=n \
ADK_DEBUG=n \
ADK_STATIC=n \
- ADK_MAKE_PARALLEL=n \
+ ADK_MAKE_PARALLEL=y \
+ ADK_MAKE_JOBS=4 \
ADK_FORCE_PARALLEL=n \
ADK_PACKAGE_GRUB=n \
+ ADK_PACKAGE_XORG_SERVER_WITH_DRI=n \
ADK_PACKAGE_AUFS2_UTIL=n \
ADK_PACKAGE_BASE_FILES=y \
ADK_PACKAGE_GCC=n \
@@ -431,7 +433,7 @@ bulk:
$(GMAKE) VERBOSE=1 all; \
rm .config; \
) 2>&1 | tee $(TOPDIR)/bin/$${target}_$$libc/$$target-$$libc-$$fs.log; \
- done <${TOPDIR}/target/bulk.lst
+ done <${TOPDIR}/target/bulkdef.lst
bulktoolchain:
@while read target libc; do \
diff --git a/mk/image.mk b/mk/image.mk
index 04fae43bf..53b01d0c2 100644
--- a/mk/image.mk
+++ b/mk/image.mk
@@ -70,6 +70,8 @@ ${BIN_DIR}/${INITRAMFS}: ${TARGET_DIR}
cpio -R 0:0 -oC512 -Mdist -Hnewc | ${ADK_COMPRESSION_TOOL} >$@
${BUILD_DIR}/${INITRAMFS_PIGGYBACK}: ${TARGET_DIR}
+ $(SED) 's#^CONFIG_INITRAMFS_SOURCE.*#CONFIG_INITRAMFS_SOURCE="${BUILD_DIR}/${INITRAMFS_PIGGYBACK}"#' \
+ $(LINUX_DIR)/.config
cd ${TARGET_DIR}; find . | sed -n '/^\.\//s///p' | sort | \
cpio -R 0:0 -oC512 -Mdist -Hnewc >$@
@@ -81,5 +83,13 @@ ${BIN_DIR}/${ROOTFSSQUASHFS}: ${TARGET_DIR}
${BUILD_DIR}/root.squashfs > \
${BUILD_DIR}/${ROOTFSSQUASHFS}
+createinitramfs:
+ @-rm $(LINUX_DIR)/usr/initramfs_data.cpio* $(MAKE_TRACE)
+ echo N | \
+ $(MAKE) -C $(LINUX_DIR) V=1 CROSS_COMPILE="$(TARGET_CROSS)" \
+ ARCH=$(ARCH) CC="$(TARGET_CC)" oldconfig $(MAKE_TRACE)
+ $(MAKE) -C $(LINUX_DIR) V=1 CROSS_COMPILE="$(TARGET_CROSS)" \
+ ARCH=$(ARCH) CC="$(TARGET_CC)" $(MAKE_TRACE)
+
imageclean:
rm -f $(BIN_DIR)/$(ADK_TARGET)-* ${BUILD_DIR}/$(ADK_TARGET)-*
diff --git a/mk/modules.mk b/mk/modules.mk
index fce15c190..a7fc49d8c 100644
--- a/mk/modules.mk
+++ b/mk/modules.mk
@@ -1047,18 +1047,18 @@ $(eval $(call KMOD_template,PCCARD,pccard,\
$(MODULES_DIR)/kernel/drivers/pcmcia/pcmcia_core \
,40))
-$(eval $(call KMOD_template,PCMCIA,pcmcia,\
- $(MODULES_DIR)/kernel/drivers/pcmcia/pcmcia \
-,50))
-
-$(eval $(call KMOD_template,CARDBUS,cardbus,\
+$(eval $(call KMOD_template,YENTA,yenta,\
$(MODULES_DIR)/kernel/drivers/pcmcia/rsrc_nonstatic \
$(MODULES_DIR)/kernel/drivers/pcmcia/yenta_socket \
,50))
-$(eval $(call KMOD_template,PCMCIA_SERIAL_CS,pcmcia-serial-cs,\
+$(eval $(call KMOD_template,PCMCIA,pcmcia,\
+ $(MODULES_DIR)/kernel/drivers/pcmcia/pcmcia \
+,60))
+
+$(eval $(call KMOD_template,SERIAL_8250_CS,serial-8250-cs,\
$(MODULES_DIR)/kernel/drivers/serial/serial_cs \
-,55))
+,70))
#
# Input
diff --git a/mk/rootfs.mk b/mk/rootfs.mk
index b91a58629..cb21798a8 100644
--- a/mk/rootfs.mk
+++ b/mk/rootfs.mk
@@ -10,6 +10,11 @@ endef
ifeq ($(ADK_LINUX_MIPS_RB532),y)
ROOTFS:= root=/dev/sda2
+MTDDEV:= root=/dev/mtdblock1
+endif
+
+ifeq ($(ADK_LINUX_MIPS_RB433),y)
+MTDDEV:= root=/dev/mtdblock2
endif
ifeq ($(ADK_LINUX_ARM_FOXBOARD),y)
@@ -17,12 +22,12 @@ ROOTFS:= root=/dev/mmcblk0p2 rootwait
endif
$(eval $(call rootfs_template,ext2-block,EXT2_BLOCK,$(ROOTFS)))
-$(eval $(call rootfs_template,usb,USB,root=/dev/sdb1 rootdelay=10))
+$(eval $(call rootfs_template,usb,USB,root=/dev/sdb1 rootdelay=5))
$(eval $(call rootfs_template,archive,ARCHIVE))
$(eval $(call rootfs_template,initramfs,INITRAMFS))
$(eval $(call rootfs_template,initramfs-piggyback,INITRAMFS_PIGGYBACK))
$(eval $(call rootfs_template,squashfs,SQUASHFS))
-$(eval $(call rootfs_template,yaffs,YAFFS,root=/dev/mtdblock1 panic=3))
+$(eval $(call rootfs_template,yaffs,YAFFS,$(MTDDEV) panic=3))
$(eval $(call rootfs_template,nfsroot,NFSROOT,root=/dev/nfs ip=dhcp init=/init))
$(eval $(call rootfs_template,encrypted,ENCRYPTED))