[ixp4xx] refresh Avila/Cambria patches
[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 Build/Clean
11 $(MAKE) -C u-boot clean
12 endef
13
14 define Build/Compile
15 $(MAKE) -C u-boot compile
16 endef
17
18 define Image/BuildKernel
19 $(STAGING_DIR_HOST)/bin/lzma e $(KDIR)/vmlinux $(KDIR)/vmlinux.lzma
20 mkimage -A mips -O linux -T kernel -a 0x80002000 -C lzma -e \
21 0x80002000 \
22 -n 'MIPS OpenWrt Linux-$(LINUX_VERSION)' \
23 -d $(KDIR)/vmlinux.lzma $(KDIR)/uImage
24
25 cp $(KDIR)/uImage $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-uImage
26 endef
27
28 define Image/Build/squashfs
29 cat $(KDIR)/uImage $(KDIR)/root.$(1) > $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-$(1).image
30 $(call prepare_generic_squashfs,$(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-$(1).image)
31 endef
32
33 define Image/Build/jffs2-64k
34 dd if=$(KDIR)/uImage of=$(KDIR)/uImage.$(1) bs=64k conv=sync
35 cat $(KDIR)/uImage.$(1) $(KDIR)/root.$(1) > $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-$(1).image
36 endef
37
38 define Image/Build
39 $(call Image/Build/$(1),$(1))
40 endef
41
42 $(eval $(call BuildImage))
This page took 0.040086 seconds and 5 git commands to generate.