2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
7 include $(TOPDIR
)/rules.mk
8 include $(INCLUDE_DIR
)/image.mk
10 define Image
/BuildKernel
11 $(STAGING_DIR_HOST
)/bin
/lzma e
$(KDIR
)/vmlinux
$(KDIR
)/vmlinux.lzma
12 mkimage
-A mips
-O linux
-T kernel
-C lzma
-a
0x80002000 -e \
14 -n
'MIPS OpenWrt Linux-$(LINUX_VERSION)' \
15 -d
$(KDIR
)/vmlinux.lzma
$(KDIR
)/uImage
17 cp
$(KDIR
)/uImage
$(BIN_DIR
)/openwrt-
$(BOARD
)-uImage
20 define Image
/Build
/squashfs
21 $(call prepare_generic_squashfs
,$(BIN_DIR
)/openwrt-
$(BOARD
)-$(1).image
)
25 cat
$(KDIR
)/uImage
$(KDIR
)/root.
$(1) > $(BIN_DIR
)/openwrt-
$(BOARD
)-$(1).image
26 $(call Image
/Build
/$(1),$(1))
30 $(eval
$(call BuildImage
))