2 # Copyright (C) 2010 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
13 PKG_BUILD_DIR
:= $(KDIR
)/$(PKG_NAME
)-$(PKG_VERSION
)$(LOADER_TYPE
)
15 $(PKG_BUILD_DIR
)/.prepared
:
16 mkdir
$(PKG_BUILD_DIR
)
17 $(CP
) .
/src
/* $(PKG_BUILD_DIR
)/
20 $(PKG_BUILD_DIR
)/lzma.elf
: $(PKG_BUILD_DIR
)/.prepared
$(PKG_BUILD_DIR
)/vmlinux.lzma
21 PATH
="$(TARGET_PATH)" $(MAKE
) -C
$(PKG_BUILD_DIR
) \
22 CC
="$(TARGET_CC)" CROSS_COMPILE
="$(TARGET_CROSS)"
24 $(PKG_BUILD_DIR
)/vmlinux.lzma
: $(KDIR
)/vmlinux.lzma
27 $(KDIR
)/loader
$(LOADER_TYPE
).elf
: $(PKG_BUILD_DIR
)/lzma.elf
30 $(KDIR
)/loader
$(LOADER_TYPE
).bin
: $(PKG_BUILD_DIR
)/lzma.bin
34 prepare
: $(PKG_BUILD_DIR
)/.prepared
35 compile
: $(KDIR
)/loader
$(LOADER_TYPE
).elf
$(KDIR
)/loader
$(LOADER_TYPE
).bin
39 rm -rf
$(PKG_BUILD_DIR
)
40 rm -f
$(KDIR
)/loader.elf
41 rm -f
$(KDIR
)/loader.bin
This page took 0.042964 seconds and 5 git commands to generate.