Przeglądaj źródła

add support for saving video decoding license keys to config

Signed-off-by: Oliver Schib <oliver.schib@gmx.ch>
Oliver Schib 6 lat temu
rodzic
commit
7b672c06bf

+ 6 - 0
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 \

+ 17 - 0
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