[kernel] kmod-usb-core is buildin on etrax target
[openwrt.git] / target / linux / brcm47xx / image / lzma-loader / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME := lzma-loader
11 PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
12
13 $(PKG_BUILD_DIR)/.prepared:
14 mkdir $(PKG_BUILD_DIR)
15 $(CP) ./src/* $(PKG_BUILD_DIR)/
16 touch $@
17
18 $(PKG_BUILD_DIR)/loader.gz: $(PKG_BUILD_DIR)/.prepared
19 $(MAKE) -C $(PKG_BUILD_DIR) CC="$(TARGET_CC)" \
20 LD="$(TARGET_CROSS)ld" CROSS_COMPILE="$(TARGET_CROSS)"
21
22 download:
23 prepare: $(PKG_BUILD_DIR)/.prepared
24 compile: $(PKG_BUILD_DIR)/loader.gz
25 install:
26
27 ifneq ($(TARGET),)
28 install: compile
29 $(CP) $(PKG_BUILD_DIR)/loader.gz $(PKG_BUILD_DIR)/loader.elf $(TARGET)/
30 endif
31
32 clean:
33 rm -rf $(PKG_BUILD_DIR)
This page took 0.035973 seconds and 5 git commands to generate.