source: branches/backfire/target/linux/kirkwood/image/Makefile @ 21208

Last change on this file since 21208 was 21208, checked in by nico, 7 years ago

[backfire] merge r20834, r20840, r20854 & r20855

File size: 916 bytes
Line 
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#
7include $(TOPDIR)/rules.mk
8include $(INCLUDE_DIR)/image.mk
9
10add_jffs2_mark=
11
12define Image/Prepare
13        cp $(LINUX_DIR)/arch/arm/boot/uImage $(KDIR)/uImage
14endef
15
16define Image/BuildKernel
17# do mach-id fixup here, if needed
18        cp $(KDIR)/uImage $(BIN_DIR)/$(IMG_PREFIX)-uImage
19endef
20
21define Image/Build
22        $(call Image/Build/$(1),$(1))
23endef
24
25define Image/Build/jffs2-128k
26        ( \
27                dd if=$(KDIR)/uImage bs=4096k conv=sync; \
28                dd if=$(KDIR)/root.$(1) bs=128k conv=sync; \
29        ) > $(BIN_DIR)/$(IMG_PREFIX)-$(1).img
30endef
31
32define Image/Build/squashfs
33        $(call prepare_generic_squashfs,$(KDIR)/root.squashfs)
34        ( \
35                dd if=$(KDIR)/uImage bs=4096k conv=sync; \
36                dd if=$(KDIR)/root.$(1) bs=128k conv=sync; \
37        ) > $(BIN_DIR)/$(IMG_PREFIX)-$(1).img
38endef
39
40$(eval $(call BuildImage))
Note: See TracBrowser for help on using the repository browser.