ramips: ramips_esw: fix typos
[openwrt.git] / target / linux / kirkwood / image / Makefile
1 #
2 # Copyright (C) 2009-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 JFFS2OPTS += --little-endian --pagesize=0x800 --no-cleanmarkers --pad
11
12 define Image/Prepare
13 cp $(LINUX_DIR)/arch/arm/boot/uImage $(KDIR)/uImage
14 endef
15
16 define Image/BuildKernel
17 # do mach-id fixup here, if needed
18 cp $(KDIR)/uImage $(BIN_DIR)/$(IMG_PREFIX)-uImage
19 endef
20
21 define Image/Build
22 $(if $(Image/Build/$(1)), \
23 $(call Image/Build/$(1),$(1)), \
24 $(CP) $(KDIR)/root.$(1) $(BIN_DIR)/$(IMG_PREFIX)-$(PROFILE)-$(1).img \
25 )
26 endef
27
28 define Image/Build/jffs2-128k
29 dd if=$(KDIR)/root.$(1) of=$(BIN_DIR)/$(IMG_PREFIX)-$(PROFILE)-$(1).img \
30 bs=2048 conv=sync
31 endef
32
33 define Image/Build/squashfs
34 $(call prepare_generic_squashfs,$(KDIR)/root.squashfs)
35 ( \
36 dd if=$(KDIR)/uImage bs=4096k conv=sync; \
37 dd if=$(KDIR)/root.$(1) bs=128k conv=sync; \
38 ) > $(BIN_DIR)/$(IMG_PREFIX)-$(PROFILE)-$(1).img
39 endef
40
41 $(eval $(call BuildImage))
This page took 0.042574 seconds and 5 git commands to generate.