osafeloader: new util for extracting partitions from SafeLoader
[openwrt/openwrt.git] / package / utils / osafeloader / Makefile
1 #
2 # Copyright (C) 2016 Rafał Miłecki <rafal@milecki.pl>
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:=osafeloader
11 PKG_RELEASE:=1
12
13 include $(INCLUDE_DIR)/package.mk
14
15 define Package/osafeloader
16 SECTION:=utils
17 CATEGORY:=Base system
18 TITLE:=Utility for handling TP-LINK SafeLoader images
19 MAINTAINER:=Rafał Miłecki <rafal@milecki.pl>
20 DEPENDS:=@TARGET_bcm53xx
21 endef
22
23 define Package/osafeloader/description
24 This package contains an utility that allows handling SafeLoader images.
25 endef
26
27 define Build/Compile
28 $(MAKE) -C $(PKG_BUILD_DIR) \
29 CC="$(TARGET_CC)" \
30 CFLAGS="$(TARGET_CFLAGS) -Wall"
31 endef
32
33 define Package/osafeloader/install
34 $(INSTALL_DIR) $(1)/usr/bin
35 $(INSTALL_BIN) $(PKG_BUILD_DIR)/osafeloader $(1)/usr/bin/
36 endef
37
38 $(eval $(call BuildPackage,osafeloader))