upgrade ppc44x to 2.6.27
[openwrt.git] / target / linux / ifxmips / image / Makefile
1 #
2 # Copyright (C) 2006 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 $(STAGING_DIR_HOST)/bin/lzma e $(KDIR)/vmlinux $(KDIR)/vmlinux.lzma
12 mkimage -A mips -O linux -T kernel -a 0x80002000 -C lzma -e \
13 0x80002000 \
14 -n 'MIPS OpenWrt Linux-$(LINUX_VERSION)' \
15 -d $(KDIR)/vmlinux.lzma $(KDIR)/uImage
16
17 cp $(KDIR)/uImage $(BIN_DIR)/openwrt-$(BOARD)-uImage
18 endef
19
20 define Image/Build/squashfs
21 cat $(KDIR)/uImage $(KDIR)/root.$(1) > $(BIN_DIR)/openwrt-$(BOARD)-$(1).image
22 $(call prepare_generic_squashfs,$(BIN_DIR)/openwrt-$(BOARD)-$(1).image)
23 endef
24
25 define Image/Build/jffs2-64k
26 dd if=$(KDIR)/uImage of=$(KDIR)/uImage.$(1) bs=64k conv=sync
27 cat $(KDIR)/uImage.$(1) $(KDIR)/root.$(1) > $(BIN_DIR)/openwrt-$(BOARD)-$(1).image
28 endef
29
30 define Image/Build
31 $(call Image/Build/$(1),$(1))
32 endef
33
34 $(eval $(call BuildImage))
This page took 0.054508 seconds and 5 git commands to generate.