open-plc-utils: new package
[buildroot-gz.git] / package / devmem2 / devmem2.mk
blob7f0594e21cd3f3041ec20b93b4934a282970f6c3
1 ################################################################################
3 # devmem2
5 ################################################################################
7 DEVMEM2_SITE = http://free-electrons.com/pub/mirror
8 DEVMEM2_SOURCE = devmem2.c
9 DEVMEM2_VERSION = 1
10 DEVMEM2_LICENSE = GPLv2+
11 DEVMEM2_LICENSE_FILES = devmem2.c
13 define DEVMEM2_EXTRACT_CMDS
14 cp $(DL_DIR)/$($(PKG)_SOURCE) $(@D)/
15 endef
17 define DEVMEM2_BUILD_CMDS
18 $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) devmem2
19 endef
21 define DEVMEM2_INSTALL_TARGET_CMDS
22 $(INSTALL) -D $(@D)/devmem2 $(TARGET_DIR)/sbin/devmem2
23 endef
25 $(eval $(generic-package))