[brcm63xx] fix spi chip select configuration
[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) $(KDIR)/tmp.img
33 $(CP) $(KDIR)/tmp.img $(BIN_DIR)/$(IMG_PREFIX)-$(1)-$(2).img
34 endef
35
36 define Image/Build/Initramfs
37 $(CP) $(KDIR)/bzImage $(BIN_DIR)/$(IMG_PREFIX)-ramfs.bzImage
38 endef
39
40 define Image/Build
41 $(CP) $(KDIR)/bzImage $(BIN_DIR)/$(IMG_PREFIX).bzImage
42 $(call Image/Build/$(PROFILE),$(1),$(PROFILE),$(patsubst jffs2-%k,%,$(1)))
43 ifeq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),y)
44 $(call Image/Build/Initramfs)
45 endif
46 endef
47
48 $(eval $(call BuildImage))
This page took 0.052216 seconds and 5 git commands to generate.