kumquat-buildroot/package/jsmn/jsmn.mk
Misha Komarovskiy f9edac7ec4 package/cbootimage: enable target variant
This allow bootloader modification online on Tegra-targets

Signed-off-by: Misha Komarovskiy <zombah@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2017-01-28 23:21:30 +13:00

25 lines
709 B
Makefile

################################################################################
#
# jsmn
#
################################################################################
JSMN_VERSION = 6021415cc75e7922d45b12935f56348b064d8a7f
JSMN_SITE = $(call github,zserge,jsmn,$(JSMN_VERSION))
JSMN_LICENSE = MIT
JSMN_LICENSE_FILES = LICENSE
# static library only
JSMN_INSTALL_STAGING = YES
JSMN_INSTALL_TARGET = NO
define JSMN_BUILD_CMDS
$(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D)
endef
define JSMN_INSTALL_STAGING_CMDS
$(INSTALL) -D -m 0644 $(@D)/libjsmn.a $(STAGING_DIR)/usr/lib/libjsmn.a
$(INSTALL) -D -m 0644 $(@D)/jsmn.h $(STAGING_DIR)/usr/include/jsmn.h
endef
$(eval $(generic-package))