diff options
author | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2009-06-14 20:42:33 +0000 |
---|---|---|
committer | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2009-06-14 20:42:33 +0000 |
commit | 2d581e604771771dd63946cbed17d6b7ec79bd9d (patch) | |
tree | 74597f2d6eef2e7a6d6338c978b8910f9f947151 /target/linux/goldfish/image/Makefile | |
parent | 8378beaa85ae5e6951d9a7a6c7d1928f5d150653 (diff) |
add the 'goldfish' target, useful for experimenting with virtual phone hardware (includes the emulator)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16459 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/goldfish/image/Makefile')
-rw-r--r-- | target/linux/goldfish/image/Makefile | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/target/linux/goldfish/image/Makefile b/target/linux/goldfish/image/Makefile new file mode 100644 index 000000000..bf871fb2a --- /dev/null +++ b/target/linux/goldfish/image/Makefile @@ -0,0 +1,43 @@ +# +# Copyright (C) 2006 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk +include $(INCLUDE_DIR)/image.mk + +JFFS2_BLOCKSIZE=124k +JFFS2OPTS += -n -s 2048 + +_PREFIX=openwrt-goldfish- + +define Image/BuildKernel + $(TARGET_CROSS)objcopy -O binary -R .note -R .comment -S \ + $(LINUX_DIR)/arch/arm/boot/compressed/vmlinux $(BIN_DIR)/$(_PREFIX)kernel.bin + $(if $(CONFIG_TARGET_ROOTFS_INITRAMFS), \ + $(CP) $(LINUX_DIR)/usr/initramfs_data.cpio.gz, \ + gzip -c < $(LINUX_DIR)/usr/initramfs_data.cpio > \ + ) $(BIN_DIR)/$(_PREFIX)ramdisk.bin + $(CP) ./run-emulator.sh $(BIN_DIR)/ +endef + +define Image/Build/jffs2-124k + $(CP) ./ubinize.cfg $(KDIR)/ + (cd $(KDIR); \ + ubinize \ + -o $(BIN_DIR)/$(_PREFIX)$(1).img \ + -p 128KiB -m 2KiB -s 2KiB ubinize.cfg; \ + ) + nand_ecc \ + $(BIN_DIR)/$(_PREFIX)$(1).img \ + $(BIN_DIR)/$(_PREFIX)system.bin +endef + +define Image/Build + $(call Image/Build/$(1),$(1)) +endef + + +$(eval $(call BuildImage)) |