2013-06-05 23:53:30 +00:00
|
|
|
################################################################################
|
2008-04-18 13:54:50 +00:00
|
|
|
#
|
|
|
|
|
# devmem2
|
|
|
|
|
#
|
2013-06-05 23:53:30 +00:00
|
|
|
################################################################################
|
2008-04-18 13:54:50 +00:00
|
|
|
|
2011-11-08 23:03:12 -03:00
|
|
|
DEVMEM2_SITE = http://free-electrons.com/pub/mirror
|
|
|
|
|
DEVMEM2_SOURCE = devmem2.c
|
|
|
|
|
DEVMEM2_VERSION = 1
|
2017-03-30 19:13:32 +05:30
|
|
|
DEVMEM2_LICENSE = GPL-2.0+
|
2017-07-04 00:04:55 +02:00
|
|
|
DEVMEM2_LICENSE_FILES = devmem2.c.license
|
2008-04-18 13:54:50 +00:00
|
|
|
|
2011-11-08 23:03:12 -03:00
|
|
|
define DEVMEM2_EXTRACT_CMDS
|
2018-04-02 15:09:24 +02:00
|
|
|
cp $(DEVMEM2_DL_DIR)/$($(PKG)_SOURCE) $(@D)/
|
2011-11-08 23:03:12 -03:00
|
|
|
endef
|
2008-04-18 13:54:50 +00:00
|
|
|
|
2017-07-04 00:04:55 +02:00
|
|
|
define DEVMEM2_EXTRACT_LICENSE
|
|
|
|
|
head -n 38 $(@D)/devmem2.c >$(@D)/devmem2.c.license
|
|
|
|
|
endef
|
|
|
|
|
DEVMEM2_PRE_PATCH_HOOKS += DEVMEM2_EXTRACT_LICENSE
|
|
|
|
|
|
2011-11-08 23:03:12 -03:00
|
|
|
define DEVMEM2_BUILD_CMDS
|
|
|
|
|
$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) devmem2
|
|
|
|
|
endef
|
2008-04-18 13:54:50 +00:00
|
|
|
|
2011-11-08 23:03:12 -03:00
|
|
|
define DEVMEM2_INSTALL_TARGET_CMDS
|
|
|
|
|
$(INSTALL) -D $(@D)/devmem2 $(TARGET_DIR)/sbin/devmem2
|
|
|
|
|
endef
|
2008-04-18 13:54:50 +00:00
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(generic-package))
|