summaryrefslogtreecommitdiffstats
path: root/package/devmem2/devmem2.mk
blob: cc9b218b4cd6a27d37c2758cbf601688ff385433 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#############################################################
#
# 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 $(generic-package))