summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--package/bcm28xx-bootloader/Makefile6
-rw-r--r--target/config/Config.in.runtime17
2 files changed, 23 insertions, 0 deletions
diff --git a/package/bcm28xx-bootloader/Makefile b/package/bcm28xx-bootloader/Makefile
index aea41bcb6..54fc57f18 100644
--- a/package/bcm28xx-bootloader/Makefile
+++ b/package/bcm28xx-bootloader/Makefile
@@ -102,6 +102,12 @@ ifeq ($(ADK_TARGET_SYSTEM_RASPBERRY_PI3P_64),y)
printf "enable_uart=1\n" >> \
$(IDIR_BCM28XX_BOOTLOADER)/boot/config.txt
endif
+ printf "# License keys for video decoding\n" >> \
+ $(IDIR_BCM28XX_BOOTLOADER)/boot/config.txt
+ printf "decode_MPG2=$(ADK_RUNTIME_MPEG2_KEY)\n" >> \
+ $(IDIR_BCM28XX_BOOTLOADER)/boot/config.txt
+ printf "decode_WVC1=$(ADK_RUNTIME_VC1_KEY)\n" >> \
+ $(IDIR_BCM28XX_BOOTLOADER)/boot/config.txt
ifeq ($(ADK_PACKAGE_BCM28XX_DEBUGTOOL),y)
$(INSTALL_DIR) $(IDIR_BCM28XX_DEBUGTOOL)/usr/bin
$(INSTALL_BIN) ./files/vcdbg \
diff --git a/target/config/Config.in.runtime b/target/config/Config.in.runtime
index 14151d371..96668cd53 100644
--- a/target/config/Config.in.runtime
+++ b/target/config/Config.in.runtime
@@ -717,3 +717,20 @@ config ADK_SIMPLE_NETWORK_CONFIG_NS
config ADK_SIMPLE_NETWORK_CONFIG_PROXY
string "HTTP-Proxy (f.e. http://10.0.0.2:8080)"
depends on ADK_SIMPLE_NETWORK_CONFIG
+
+menu "video decoding license keys"
+depends on ADK_TARGET_BOARD_BCM28XX
+
+config ADK_RUNTIME_MPEG2_KEY
+ string "MPEG2"
+ default "0x12345678"
+ help
+ Hardware-specific license key for MPEG2 decoding.
+
+config ADK_RUNTIME_VC1_KEY
+ string "VC-1"
+ default "0x12345678"
+ help
+ Hardware-specific license key for VC-1 decoding.
+
+endmenu