developer | fd40db2 | 2021-04-29 10:08:25 +0800 | [diff] [blame] | 1 | # |
developer | 477578e | 2022-11-16 17:08:16 +0800 | [diff] [blame] | 2 | # SPDX-License-Identifier: GPL-2.0 |
developer | fd40db2 | 2021-04-29 10:08:25 +0800 | [diff] [blame] | 3 | # |
| 4 | |
| 5 | include $(TOPDIR)/rules.mk |
| 6 | |
| 7 | PKG_NAME:=regs |
| 8 | PKG_RELEASE:=1 |
| 9 | |
| 10 | PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME) |
| 11 | |
| 12 | include $(INCLUDE_DIR)/package.mk |
| 13 | include $(INCLUDE_DIR)/kernel.mk |
| 14 | |
| 15 | define Package/regs |
| 16 | SECTION:=MTK Properties |
| 17 | CATEGORY:=MTK Properties |
| 18 | TITLE:=an program to read/write from/to a pci device from userspace. |
| 19 | SUBMENU:=Applications |
| 20 | DEPENDS:=+@KERNEL_DEVMEM |
| 21 | endef |
| 22 | |
| 23 | define Package/regs/description |
| 24 | Simple program to read/write from/to a pci device from userspace. |
| 25 | endef |
| 26 | |
| 27 | define Build/Configure |
| 28 | endef |
| 29 | |
| 30 | define Package/regs/install |
| 31 | $(INSTALL_DIR) $(1)/usr/bin |
| 32 | $(INSTALL_BIN) $(PKG_BUILD_DIR)/regs $(1)/usr/bin |
| 33 | endef |
| 34 | |
| 35 | |
| 36 | $(eval $(call BuildPackage,regs)) |
| 37 | |