c2d525e82d
Verified way how to get packages from github by version or sha1 (it's enough to use first 7 characters from SHA1): 1. by sha1 FOO_VERSION = 1234567 FOO_SITE = http://github.com/user/package/tarball/branch 2. by version FOO_VERSION = v1.0 FOO_SITE = http://github.com/user/package/tarball/$(FOO_VERSION) Signed-off-by: Marek Belisko <marek.belisko@open-nandra.com> Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Tested-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Acked-by: Samuel Martin <s.martin49@gmail.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
32 lines
893 B
Makefile
32 lines
893 B
Makefile
#############################################################
|
|
#
|
|
# ti-utils
|
|
#
|
|
#############################################################
|
|
|
|
TI_UTILS_VERSION = 06dbdb2
|
|
TI_UTILS_SITE = http://github.com/gxk/ti-utils/tarball/master
|
|
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))
|