2 # Copyright (C) 2006-2009 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
7 include $(TOPDIR
)/rules.mk
8 include $(INCLUDE_DIR
)/image.mk
11 $(CP
) $(LINUX_DIR
)/arch
/x86
/boot
/bzImage
$(KDIR
)/bzImage
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
)/openwrt-
$(BOARD
)-$(1)-$(2).img
18 $(STAGING_DIR_HOST
)/bin
/airlink
-e
-b
1 $(KDIR
)/bzImage.tmp
$(KDIR
)/root.
$(1) $(BIN_DIR
)/openwrt-
$(BOARD
)-$(1)-$(2)-web.img
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
)/openwrt-
$(BOARD
)-$(1)-$(2).img
28 rm $(KDIR
)/tmp.img
$(KDIR
)/bzImage.tmp
31 define Image
/Build
/bifferboard
32 $(TOPDIR
)/target
/linux
/rdc
/image
/mkimg_bifferboard.py
$(KDIR
)/bzImage
$(KDIR
)/root.
$(1) $(KDIR
)/tmp.img
33 $(CP
) $(KDIR
)/tmp.img
$(BIN_DIR
)/openwrt-
$(BOARD
)-$(1)-$(2).img
36 define Image
/Build
/Initramfs
37 $(CP
) $(KDIR
)/bzImage
$(BIN_DIR
)/openwrt-
$(BOARD
)-ramfs.bzImage
41 $(CP
) $(KDIR
)/bzImage
$(BIN_DIR
)/openwrt-
$(BOARD
).bzImage
42 $(call Image
/Build
/$(PROFILE
),$(1),$(PROFILE
),$(patsubst jffs2-
%k
,%,$(1)))
43 ifeq ($(CONFIG_TARGET_ROOTFS_INITRAMFS
),y
)
44 $(call Image
/Build
/Initramfs
)
48 $(eval
$(call BuildImage
))