Files
buildroot/package/umtprd/umtprd.mk
T
Apaczer 5c0a711fd2 BOARD/PKG: better LOGS in on OS scripts & add umtpr-debug (#169)
* firsboot/main - better LOGs
 - refactor a bit gmenu2x loop
 - add good logs for umtpr
* BOARD: options.cfg: add DEBUG options
 - use separate options for gmenu2x & umtpr debug
 - for default setup NO DEBUG
* PACKAGE: umtprd: add debug build
2025-05-21 21:37:11 +02:00

29 lines
892 B
Makefile

################################################################################
#
# umtprd
#
################################################################################
UMTPRD_VERSION = f5ef8985f6226c69b944392f7a2d53bc24f72cb4 #commit a734ef0 breakes with mq_open error
UMTPRD_SITE_METHOD = git
UMTPRD_SITE = https://github.com/viveris/uMTP-Responder.git
UMTPRD_LICENSE = GPL-3.0+
UMTPRD_LICENSE_FILES = LICENSE
define UMTPRD_BUILD_CMDS
# Compile umtprd-debug
CC=$(TARGET_CC) $(MAKE) -C $(@D) DEBUG=1 #USE_SYSLOG=1
mv -fn $(@D)/umtprd $(@D)/umtprd-debug
# Clean prv build
CC=$(TARGET_CC) $(MAKE) clean -C $(@D)
# Compile umtprd
CC=$(TARGET_CC) $(MAKE) -C $(@D)
endef
define UMTPRD_INSTALL_TARGET_CMDS
$(INSTALL) -D -m 0755 $(@D)/umtprd $(TARGET_DIR)/usr/sbin/umtprd
$(INSTALL) -D -m 0755 $(@D)/umtprd-debug $(TARGET_DIR)/usr/sbin/umtprd-debug
endef
$(eval $(generic-package))