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
This commit is contained in:
Apaczer
2025-05-21 21:37:11 +02:00
committed by GitHub
parent a2929a4734
commit 5c0a711fd2
10 changed files with 283 additions and 146 deletions

View File

@@ -11,11 +11,18 @@ 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))