From d9a42c5436a0bdc49696edaf80958cfa9a3f26cc Mon Sep 17 00:00:00 2001 From: Florian Fainelli Date: Sat, 6 Nov 2010 18:54:20 +0000 Subject: Merge branch 'adm8668' SVN-Revision: 23900 --- target/linux/adm8668/image/Makefile | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 target/linux/adm8668/image/Makefile (limited to 'target/linux/adm8668/image/Makefile') 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)) -- cgit v1.2.3