[ixp4xx] switch to 2.6.32
[openwrt.git] / target / linux / sibyte / image / Makefile
1 #
2 # Copyright (C) 2007-2009 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/BuildKernel
11 cp $(LINUX_DIR)/vmlinux $(BIN_DIR)/openwrt-$(BOARD)-vmlinux
12 # uImage
13 dd if=$(KDIR)/vmlinux of=$(KDIR)/openwrt-$(BOARD)-vmlinux bs=64k conv=sync
14 mkimage -A mips -O linux -T kernel -a 0x80100000 -C none -e \
15 0x80100000 \
16 -n 'MIPS OpenWrt Linux-$(LINUX_VERSION)' \
17 -d $(KDIR)/openwrt-$(BOARD)-vmlinux $(BIN_DIR)/openwrt-$(BOARD)-uImage
18 endef
19
20 define Image/Build
21 $(call Image/Build/$(1),$(1))
22 endef
23
24 define Image/Build/jffs2-64k
25 dd if=$(KDIR)/root.$(1) of=$(BIN_DIR)/openwrt-$(BOARD)-$(1).img bs=65536 conv=sync
26 endef
27
28 define Image/Build/jffs2-128k
29 dd if=$(KDIR)/root.$(1) of=$(BIN_DIR)/openwrt-$(BOARD)-$(1).img bs=131072 conv=sync
30 $(call Image/Build/slug,$(1))
31 endef
32
33 define Image/Build/squashfs
34 $(call prepare_generic_squashfs,$(KDIR)/root.squashfs)
35 dd if=$(KDIR)/root.$(1) of=$(BIN_DIR)/openwrt-$(BOARD)-$(1).img bs=131072 conv=sync
36 endef
37
38 $(eval $(call BuildImage))
This page took 0.053118 seconds and 5 git commands to generate.