ramips: switch to 2.6.39.2
[openwrt.git] / target / linux / mpc85xx / image / Makefile
1 #
2 # Copyright (C) 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 DTS_TARGETS = mpc8548cds
11
12 define Image/Prepare
13 cp $(LINUX_DIR)/arch/powerpc/boot/zImage $(KDIR)/zImage
14 endef
15
16 define Image/BuildKernel
17 cp $(KDIR)/zImage $(BIN_DIR)/$(IMG_PREFIX)-zImage
18 $(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)
19 endef
20
21 define Image/Build/ext2
22 cp $(KDIR)/root.$(1) $(BIN_DIR)/$(IMG_PREFIX)-ext2.img
23 endef
24
25 define Image/Build
26 $(call Image/Build/$(1),$(1))
27 endef
28
29 $(eval $(call BuildImage))
This page took 0.040002 seconds and 5 git commands to generate.