Root/package/fbtest/Makefile

1#
2# Copyright (C) 2012 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=fbtest
11PKG_RELEASE:=1
12
13PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
14
15include $(INCLUDE_DIR)/package.mk
16
17define Package/fbtest
18  SECTION:=utils
19  CATEGORY:=Utilities
20  TITLE:=Frame buffer device testing tool
21  DEPENDS:=@DISPLAY_SUPPORT
22endef
23
24define Build/Prepare
25    mkdir -p $(PKG_BUILD_DIR)
26    $(CP) ./src/* $(PKG_BUILD_DIR)/
27endef
28
29define Build/Configure
30endef
31
32define Build/Compile
33    $(MAKE) -C $(PKG_BUILD_DIR) \
34        CC="$(TARGET_CC)" \
35        CFLAGS="$(TARGET_CFLAGS) -Wall" \
36        LDFLAGS="$(TARGET_LDFLAGS)"
37endef
38
39define Package/fbtest/install
40    $(INSTALL_DIR) $(1)/usr/sbin
41    $(INSTALL_BIN) $(PKG_BUILD_DIR)/fbtest $(1)/usr/sbin/
42endef
43
44$(eval $(call BuildPackage,fbtest))
45

Archive Download this file



interactive