aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/adm8668/image/Makefile
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2010-11-06 18:54:20 +0000
committerFlorian Fainelli <florian@openwrt.org>2010-11-06 18:54:20 +0000
commit7592e73bacd0deaf81c61daf22b89f6b2b584870 (patch)
tree92a03d56fe21fe784eae3ffca40cc36875b799e0 /target/linux/adm8668/image/Makefile
parent4cd045d79668d4ca706192b513992e6b1fda72cb (diff)
downloadupstream-7592e73bacd0deaf81c61daf22b89f6b2b584870.tar.gz
upstream-7592e73bacd0deaf81c61daf22b89f6b2b584870.tar.bz2
upstream-7592e73bacd0deaf81c61daf22b89f6b2b584870.zip
Merge branch 'adm8668'
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23900 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/adm8668/image/Makefile')
-rw-r--r--target/linux/adm8668/image/Makefile26
1 files changed, 26 insertions, 0 deletions
diff --git a/target/linux/adm8668/image/Makefile b/target/linux/adm8668/image/Makefile
new file mode 100644
index 0000000000..e9d183b789
--- /dev/null
+++ b/target/linux/adm8668/image/Makefile
@@ -0,0 +1,26 @@
+#
+# Copyright (C) 2010 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+include $(TOPDIR)/rules.mk
+include $(INCLUDE_DIR)/image.mk
+
+define Build/Clean
+ $(MAKE) -C lzma-loader clean
+endef
+
+define Image/Prepare
+ cat $(KDIR)/vmlinux | $(STAGING_DIR_HOST)/bin/lzma e -si -so -eos -lc1 -lp2 -pb2 > $(KDIR)/vmlinux.lzma
+ $(MAKE) -C lzma-loader \
+ KDIR="$(KDIR)" \
+ clean compile
+endef
+
+define Image/Build
+ ./my-mkimage $(KDIR)/loader.bin $(KDIR)/root.squashfs \
+ $(BIN_DIR)/$(IMG_PREFIX)-$(1).bin
+endef
+
+$(eval $(call BuildImage))