ar71xx: remove unused kernel versions, 2.6.36 should be the next target
[openwrt.git] / target / linux / rdc / image / Makefile
1 #
2 # Copyright (C) 2006-2010 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 include $(TOPDIR)/rules.mk
8 include $(INCLUDE_DIR)/image.mk
9
10 define Image/Prepare
11 $(CP) $(LINUX_DIR)/arch/x86/boot/bzImage $(KDIR)/bzImage
12 endef
13
14 define Image/Build/ar525w
15 cp $(KDIR)/bzImage $(KDIR)/bzImage.tmp
16 $(SCRIPT_DIR)/pad_image $(1) $(KDIR)/bzImage.tmp $(KDIR)/root.$(1) 32
17 $(STAGING_DIR_HOST)/bin/airlink -b 1 $(KDIR)/bzImage.tmp $(KDIR)/root.$(1) $(BIN_DIR)/$(IMG_PREFIX)-$(1)-$(2).img
18 $(STAGING_DIR_HOST)/bin/airlink -e -b 1 $(KDIR)/bzImage.tmp $(KDIR)/root.$(1) $(BIN_DIR)/$(IMG_PREFIX)-$(1)-$(2)-web.img
19 endef
20
21 define Image/Build/sitecom
22 cp $(KDIR)/bzImage $(KDIR)/bzImage.tmp
23 #32k config data + 20 bytes header + 2 bytes checksum after kernel image
24 $(SCRIPT_DIR)/pad_image $(1) $(KDIR)/bzImage.tmp $(KDIR)/root.$(1) 32790
25 $(TOPDIR)/target/linux/rdc/image/mkimg_sitecom.pl $(KDIR)/bzImage.tmp > $(KDIR)/tmp.img
26 cat $(KDIR)/root.$(1) >> $(KDIR)/tmp.img
27 cp $(KDIR)/tmp.img $(BIN_DIR)/$(IMG_PREFIX)-$(1)-$(2).img
28 rm $(KDIR)/tmp.img $(KDIR)/bzImage.tmp
29 endef
30
31 define Image/Build/bifferboard
32 $(TOPDIR)/target/linux/rdc/image/mkimg_bifferboard.py $(KDIR)/bzImage $(KDIR)/root.$(1) $(BIN_DIR)/$(IMG_PREFIX)-$(1)-$(2).img
33 endef
34
35 define Image/Build/Initramfs
36 $(CP) $(KDIR)/bzImage $(BIN_DIR)/$(IMG_PREFIX)-ramfs.bzImage
37 endef
38
39 define Image/Build
40 $(CP) $(KDIR)/bzImage $(BIN_DIR)/$(IMG_PREFIX).bzImage
41 $(call Image/Build/$(PROFILE),$(1),$(PROFILE),$(patsubst jffs2-%k,%,$(1)))
42 ifeq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),y)
43 $(call Image/Build/Initramfs)
44 endif
45 endef
46
47 $(eval $(call BuildImage))
This page took 0.038726 seconds and 5 git commands to generate.