diff options
author | ChengYou Ho <chengyouho@google.com> | 2019-09-05 18:20:12 +0800 |
---|---|---|
committer | ChengYou Ho <chengyouho@google.com> | 2019-09-11 18:41:28 +0800 |
commit | e0be56f1b6659aecd1049aa17cff92e197dda6b5 (patch) | |
tree | 6537f40f2601129771ebe5d004ee125e86bd9d5c /device-bramble.mk | |
parent | 64b17b8eb4f89e9d51ca68f7cf8ba36c88425d87 (diff) | |
download | bramble-e0be56f1b6659aecd1049aa17cff92e197dda6b5.tar.gz |
Remove common part to common folder
also move uncommon part to right place
Bug: 140363359
Change-Id: I74675782a643febd91bc992c48f689a206d319c2
Diffstat (limited to 'device-bramble.mk')
-rw-r--r-- | device-bramble.mk | 54 |
1 files changed, 53 insertions, 1 deletions
diff --git a/device-bramble.mk b/device-bramble.mk index d70e939..9e000da 100644 --- a/device-bramble.mk +++ b/device-bramble.mk @@ -16,7 +16,18 @@ PRODUCT_HARDWARE := bramble -include device/google/bramble/device-common.mk +ifeq ($(TARGET_PREBUILT_KERNEL),) + LOCAL_KERNEL := device/google/bramble-kernel/Image.lz4 +else + LOCAL_KERNEL := $(TARGET_PREBUILT_KERNEL) +endif + +PRODUCT_VENDOR_KERNEL_HEADERS := device/google/bramble-kernel/sm7250/kernel-headers + +include device/google/redbull/device-common.mk + +PRODUCT_SOONG_NAMESPACES += \ + device/google/bramble DEVICE_PACKAGE_OVERLAYS += device/google/bramble/bramble/overlay @@ -36,3 +47,44 @@ PRODUCT_COPY_FILES += \ frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml \ frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml +# LOCAL_PATH is device/google/redbull before this +LOCAL_PATH := device/google/bramble + +ifeq ($(wildcard vendor/google_devices/bramble/proprietary/device-vendor-bramble.mk),) + BUILD_WITHOUT_VENDOR := true +endif + +PRODUCT_PACKAGES += \ + android.hardware.usb@1.2-service.bramble + +# Vibrator HAL +PRODUCT_PACKAGES += \ + android.hardware.vibrator@1.3-service.bramble + +# Dumpstate HAL +PRODUCT_PACKAGES += \ + android.hardware.dumpstate@1.0-service.bramble + +#per device +PRODUCT_COPY_FILES += \ + $(LOCAL_PATH)/bramble/init.bramble.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.bramble.rc + +# insmod files +PRODUCT_COPY_FILES += \ + $(LOCAL_PATH)/init.insmod.bramble.cfg:$(TARGET_COPY_OUT_VENDOR)/etc/init.insmod.bramble.cfg + +# Recovery +PRODUCT_COPY_FILES += \ + $(LOCAL_PATH)/init.recovery.device.rc:recovery/root/init.recovery.bramble.rc \ + $(LOCAL_PATH)/thermal-engine-$(PRODUCT_HARDWARE).conf:$(TARGET_COPY_OUT_VENDOR)/etc/thermal-engine-$(PRODUCT_HARDWARE).conf + +PRODUCT_PACKAGES += \ + sensors.$(PRODUCT_HARDWARE) \ + +# Thermal HAL config +PRODUCT_COPY_FILES += \ + $(LOCAL_PATH)/thermal_info_config_$(PRODUCT_HARDWARE).json:$(TARGET_COPY_OUT_VENDOR)/etc/thermal_info_config.json + +# Audio effects +PRODUCT_PACKAGES += \ + libqcomvoiceprocessingdescriptors |