kumquat-buildroot/package/devmem2/devmem2.mk
Gustavo Zacarias 4e8fd936f5 devmem2: undeprecate and conver to gentargets
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2011-11-09 10:06:02 +01:00

32 lines
653 B
Makefile

#############################################################
#
# devmem2
#
#############################################################
DEVMEM2_SITE = http://free-electrons.com/pub/mirror
DEVMEM2_SOURCE = devmem2.c
DEVMEM2_VERSION = 1
define DEVMEM2_EXTRACT_CMDS
cp $(DL_DIR)/$($(PKG)_SOURCE) $(@D)/
endef
define DEVMEM2_BUILD_CMDS
$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) devmem2
endef
define DEVMEM2_CLEAN_CMDS
rm -f $(@D)/devmem2
endef
define DEVMEM2_INSTALL_TARGET_CMDS
$(INSTALL) -D $(@D)/devmem2 $(TARGET_DIR)/sbin/devmem2
endef
define DEVMEM2_UNINSTALL_TARGET_CMDS
rm -f $(TARGET_DIR)/sbin/devmem2
endef
$(eval $(call GENTARGETS))