buildrootschalter/package/ti-utils/ti-utils.mk
Thomas De Schampheleire e6ea6b7865 git packages: use full revision hash
There is no benefit in using the shortened git revision hash. On the
contrary: the shorter the hash, the higher the risk of having collisions
with another commit.

Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
Acked-by: Samuel Martin <s.martin49@gmail.com>
Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2013-11-02 16:16:54 +01:00

32 lines
977 B
Makefile

################################################################################
#
# ti-utils
#
################################################################################
TI_UTILS_VERSION = 06dbdb2727354b5f3ad7c723897f40051fddee49
TI_UTILS_SITE = http://github.com/gxk/ti-utils/tarball/$(TI_UTILS_VERSION)
TI_UTILS_DEPENDENCIES = libnl
define TI_UTILS_BUILD_CMDS
$(MAKE1) NFSROOT="$(STAGING_DIR)" \
CC="$(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS) -I$(STAGING_DIR)/usr/include/libnl3" \
LIBS="-lnl-3 -lnl-genl-3 -lm" -C $(@D) all
endef
define TI_UTILS_INSTALL_TARGET_CMDS
$(INSTALL) -m 0755 -D $(@D)/calibrator \
$(TARGET_DIR)/usr/bin/calibrator
$(INSTALL) -m 0755 -D $(@D)/scripts/go.sh \
$(TARGET_DIR)/usr/share/ti-utils/scripts/go.sh
cp -r $(@D)/ini_files $(TARGET_DIR)/usr/share/ti-utils
endef
define TI_UTILS_UNINSTALL_TARGET_CMDS
rm -f $(TARGET_DIR)/usr/bin/calibrator
rm -fr $(TARGET_DIR)/usr/share/ti-utils
endef
$(eval $(generic-package))