audio: Add 64 bit dolby fw [1/1]
PD#SH-764
Problem:
We need support 64 bit atmos lib
Solution:
Add 64 bit dolby fw
Verify:
A113
Change-Id: Iea8492edf2da3e5f53c1e4225c1bb29bd270cf8e
Signed-off-by: yujie.wu <yujie.wu@amlogic.com>
diff --git a/dolby_atmos_release/dolby_atmos_release.mk b/dolby_atmos_release/dolby_atmos_release.mk
index 4a32ccc..f15481b 100644
--- a/dolby_atmos_release/dolby_atmos_release.mk
+++ b/dolby_atmos_release/dolby_atmos_release.mk
@@ -7,6 +7,12 @@
DOLBY_ATMOS_RELEASE_SITE=$(TOPDIR)/../multimedia/dolby_atmos_release/src
DOLBY_ATMOS_RELEASE_SITE_METHOD=local
+
+ifeq ($(BR2_aarch64),y)
+export ENABLE_ATMOS_64bit = yes
+endif
+
+
define DOLBY_ATMOS_RELEASE_BUILD_CMDS
$(MAKE) CC=$(TARGET_CC) -C $(@D) all
endef
@@ -23,4 +29,4 @@
$(MAKE) -C $(@D) uninstall
endef
-$(eval $(generic-package))
\ No newline at end of file
+$(eval $(generic-package))
diff --git a/dolby_atmos_release/src/Makefile b/dolby_atmos_release/src/Makefile
index ef45130..640f50a 100644
--- a/dolby_atmos_release/src/Makefile
+++ b/dolby_atmos_release/src/Makefile
@@ -4,6 +4,12 @@
CC = arm-linux-gnueabihf-gcc
+ifeq ($(ENABLE_ATMOS_64bit),yes)
+SRC_DOLBY_FW=dolby_fw_datmos_64
+else
+SRC_DOLBY_FW=dolby_fw_datmos_32
+endif
+
all: $(TAR)
clean:
@@ -11,7 +17,7 @@
rm -f $(TARGET_DIR)/usr/lib/$(TAR)
rm -f $(TARGET_DIR)/etc/init.d/$(SCRIPT)
install:
- install -m 0755 ./$(DOLBY_FW) $(TARGET_DIR)/sbin/
+ install -m 0755 ./$(SRC_DOLBY_FW) $(TARGET_DIR)/sbin/$(DOLBY_FW)
install -m 0755 ./$(TAR) $(TARGET_DIR)/usr/lib/
install -m 0755 ./$(SCRIPT) $(TARGET_DIR)/etc/init.d/
uninstall:
diff --git a/dolby_atmos_release/src/dolby_fw_datmos b/dolby_atmos_release/src/dolby_fw_datmos_32
similarity index 100%
rename from dolby_atmos_release/src/dolby_fw_datmos
rename to dolby_atmos_release/src/dolby_fw_datmos_32
Binary files differ
diff --git a/dolby_atmos_release/src/dolby_fw_datmos_64 b/dolby_atmos_release/src/dolby_fw_datmos_64
new file mode 100755
index 0000000..f639581
--- /dev/null
+++ b/dolby_atmos_release/src/dolby_fw_datmos_64
Binary files differ