diff --git a/device.mk b/device.mk index 1636573..a068724 100644 --- a/device.mk +++ b/device.mk @@ -187,8 +187,12 @@ $(call inherit-product, $(SRC_TARGET_DIR)/product/product_launched_with_l.mk) # Thermal ifneq ($(TARGET_TEGRA_THERMAL),) +ifeq ($(filter 3.10 4.9 5.10, $(TARGET_KERNEL_VERSION)),) +TARGET_TEGRA_THERMAL_SUFFIX ?= .ack +endif + PRODUCT_PACKAGES += \ - thermalhal.nx.xml + thermalhal.nx$(TARGET_TEGRA_THERMAL_SUFFIX).xml endif # WiFi diff --git a/thermal/Android.bp b/thermal/Android.bp index af15082..536717d 100644 --- a/thermal/Android.bp +++ b/thermal/Android.bp @@ -19,3 +19,9 @@ prebuilt_etc { src: "thermalhal.nx.xml", vendor: true, } + +prebuilt_etc { + name: "thermalhal.nx.ack.xml", + src: "thermalhal.nx.ack.xml", + vendor: true, +} diff --git a/thermal/thermalhal.nx.ack.xml b/thermal/thermalhal.nx.ack.xml new file mode 100644 index 0000000..3e24a6c --- /dev/null +++ b/thermal/thermalhal.nx.ack.xml @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + + +