diff options
author | James <> | 2013-03-17 12:16:37 +0000 |
---|---|---|
committer | James <> | 2013-03-17 12:16:37 +0000 |
commit | 27b76ab0671089c47506615a796a261e993896a7 (patch) | |
tree | 61213d67e7fa87b20356b23798558e2c4212c42f /target/linux/mpc85xx/image | |
download | trunk-36060-master.tar.gz trunk-36060-master.tar.bz2 trunk-36060-master.zip |
Diffstat (limited to 'target/linux/mpc85xx/image')
-rw-r--r-- | target/linux/mpc85xx/image/.svn/entries | 62 | ||||
-rw-r--r-- | target/linux/mpc85xx/image/.svn/text-base/Makefile.svn-base | 81 | ||||
-rw-r--r-- | target/linux/mpc85xx/image/Makefile | 81 |
3 files changed, 224 insertions, 0 deletions
diff --git a/target/linux/mpc85xx/image/.svn/entries b/target/linux/mpc85xx/image/.svn/entries new file mode 100644 index 0000000..0c70821 --- /dev/null +++ b/target/linux/mpc85xx/image/.svn/entries @@ -0,0 +1,62 @@ +10 + +dir +36060 +svn://svn.openwrt.org/openwrt/trunk/target/linux/mpc85xx/image +svn://svn.openwrt.org/openwrt + + + +2013-03-15T16:11:45.630937Z +36051 +juhosg + + + + + + + + + + + + + + +3c298f89-4303-0410-b956-a3cf2f4a3e73 + +Makefile +file + + + + +2013-03-17T12:12:30.000000Z +43149f5c123f76314371283ef4f5ce97 +2013-03-15T16:11:45.630937Z +36051 +juhosg + + + + + + + + + + + + + + + + + + + + + +2033 + diff --git a/target/linux/mpc85xx/image/.svn/text-base/Makefile.svn-base b/target/linux/mpc85xx/image/.svn/text-base/Makefile.svn-base new file mode 100644 index 0000000..40db1df --- /dev/null +++ b/target/linux/mpc85xx/image/.svn/text-base/Makefile.svn-base @@ -0,0 +1,81 @@ +# +# Copyright (C) 2010 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 + +define imgname +$(BIN_DIR)/$(IMG_PREFIX)-$(2)-$(patsubst jffs2-%,jffs2,$(patsubst squashfs-%,squashfs,$(1))) +endef + +define sysupname +$(call imgname,$(1),$(2))-sysupgrade.bin +endef + +define factoryname +$(call imgname,$(1),$(2))-factory.bin +endef + +ifeq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),y) + IMAGE_SUFFIX=-initramfs +endif + +zImage:=$(BIN_DIR)/$(IMG_PREFIX)-zImage$(IMAGE_SUFFIX) + +DTS_TARGETS = mpc8548cds_32b p1010rdb tl-wdr4900-v1 +BOOT_IMAGES:=zImage cuImage.tl-wdr4900-v1 + +define Image/Prepare + $(foreach image,$(BOOT_IMAGES), + cp $(LINUX_DIR)/arch/powerpc/boot/$(image) $(KDIR)/$(image) + ) +endef + +define Image/BuildKernel + cp $(KDIR)/zImage $(zImage) + $(foreach dts,$(DTS_TARGETS), + $(LINUX_DIR)/scripts/dtc/dtc -I dts -O dtb $(LINUX_DIR)/arch/powerpc/boot/dts/$(dts).dts > $(BIN_DIR)/$(IMG_PREFIX)-$(dts).fdt + ) +endef + +define Image/Build/TPLINK + -$(STAGING_DIR_HOST)/bin/mktplinkfw \ + -H $(4) -W $(5) -F $(6) -N OpenWrt -V $(REVISION) $(7) \ + -k $(KDIR)/$(3) \ + -r $(KDIR)/root.$(1) \ + -o $(call factoryname,$(1),$(2)) + -$(STAGING_DIR_HOST)/bin/mktplinkfw \ + -H $(4) -W $(5) -F $(6) -N OpenWrt -V $(REVISION) $(7) -s \ + -k $(KDIR)/$(3) \ + -r $(KDIR)/root.$(1) \ + -o $(call sysupname,$(1),$(2)) +endef + +define Image/Build/Profile/TLWDR4900 + $(call Image/Build/TPLINK,$(1),tl-wdr4900-v1,cuImage.tl-wdr4900-v1,0x49000001,1,16Mppc) +endef + +define Image/Build/Profile/Default + $(call Image/Build/Profile/TLWDR4900,$(1)) +endef + +define Image/Build/ext2 + cp $(KDIR)/root.$(1) $(BIN_DIR)/$(IMG_PREFIX)-ext2.img +endef + +define Image/Build/squashfs + $(call prepare_generic_squashfs,$(KDIR)/root.squashfs) + cp $(KDIR)/root.squashfs $(BIN_DIR)/$(IMG_PREFIX)-root.squashfs +endef + +PROFILE ?= Default + +define Image/Build + $(call Image/Build/$(1),$(1)) + $(call Image/Build/Profile/$(PROFILE),$(1)) +endef + +$(eval $(call BuildImage)) diff --git a/target/linux/mpc85xx/image/Makefile b/target/linux/mpc85xx/image/Makefile new file mode 100644 index 0000000..40db1df --- /dev/null +++ b/target/linux/mpc85xx/image/Makefile @@ -0,0 +1,81 @@ +# +# Copyright (C) 2010 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 + +define imgname +$(BIN_DIR)/$(IMG_PREFIX)-$(2)-$(patsubst jffs2-%,jffs2,$(patsubst squashfs-%,squashfs,$(1))) +endef + +define sysupname +$(call imgname,$(1),$(2))-sysupgrade.bin +endef + +define factoryname +$(call imgname,$(1),$(2))-factory.bin +endef + +ifeq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),y) + IMAGE_SUFFIX=-initramfs +endif + +zImage:=$(BIN_DIR)/$(IMG_PREFIX)-zImage$(IMAGE_SUFFIX) + +DTS_TARGETS = mpc8548cds_32b p1010rdb tl-wdr4900-v1 +BOOT_IMAGES:=zImage cuImage.tl-wdr4900-v1 + +define Image/Prepare + $(foreach image,$(BOOT_IMAGES), + cp $(LINUX_DIR)/arch/powerpc/boot/$(image) $(KDIR)/$(image) + ) +endef + +define Image/BuildKernel + cp $(KDIR)/zImage $(zImage) + $(foreach dts,$(DTS_TARGETS), + $(LINUX_DIR)/scripts/dtc/dtc -I dts -O dtb $(LINUX_DIR)/arch/powerpc/boot/dts/$(dts).dts > $(BIN_DIR)/$(IMG_PREFIX)-$(dts).fdt + ) +endef + +define Image/Build/TPLINK + -$(STAGING_DIR_HOST)/bin/mktplinkfw \ + -H $(4) -W $(5) -F $(6) -N OpenWrt -V $(REVISION) $(7) \ + -k $(KDIR)/$(3) \ + -r $(KDIR)/root.$(1) \ + -o $(call factoryname,$(1),$(2)) + -$(STAGING_DIR_HOST)/bin/mktplinkfw \ + -H $(4) -W $(5) -F $(6) -N OpenWrt -V $(REVISION) $(7) -s \ + -k $(KDIR)/$(3) \ + -r $(KDIR)/root.$(1) \ + -o $(call sysupname,$(1),$(2)) +endef + +define Image/Build/Profile/TLWDR4900 + $(call Image/Build/TPLINK,$(1),tl-wdr4900-v1,cuImage.tl-wdr4900-v1,0x49000001,1,16Mppc) +endef + +define Image/Build/Profile/Default + $(call Image/Build/Profile/TLWDR4900,$(1)) +endef + +define Image/Build/ext2 + cp $(KDIR)/root.$(1) $(BIN_DIR)/$(IMG_PREFIX)-ext2.img +endef + +define Image/Build/squashfs + $(call prepare_generic_squashfs,$(KDIR)/root.squashfs) + cp $(KDIR)/root.squashfs $(BIN_DIR)/$(IMG_PREFIX)-root.squashfs +endef + +PROFILE ?= Default + +define Image/Build + $(call Image/Build/$(1),$(1)) + $(call Image/Build/Profile/$(PROFILE),$(1)) +endef + +$(eval $(call BuildImage)) |