mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-22 06:57:57 +00:00
d9a42c5436
SVN-Revision: 23900
27 lines
607 B
Makefile
27 lines
607 B
Makefile
#
|
|
# 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))
|