Snap for 12304452 from d1dfe55442
to 24Q4-release
Change-Id: I6b4d7ec206c59326c4d08e579130e1c467396ed9
This commit is contained in:
commit
0eba224456
5 changed files with 81 additions and 1 deletions
|
@ -20,4 +20,76 @@ PRODUCT_PACKAGES_DEBUG += citadel_integration_tests \
|
||||||
nugget_targeted_tests \
|
nugget_targeted_tests \
|
||||||
CitadelProvision \
|
CitadelProvision \
|
||||||
nugget_aidl_test_weaver
|
nugget_aidl_test_weaver
|
||||||
|
|
||||||
|
# Assign default value for RELEASE_GOOGLE_DAUNTLESS_DIR if no trunk flags support
|
||||||
|
RELEASE_GOOGLE_DAUNTLESS_DIR ?= vendor/google_nos/prebuilts/dauntless
|
||||||
|
|
||||||
|
# The production Dauntless firmware will be of flavors evt and d3m2.
|
||||||
|
# There are also several flavors of pre-release chips. Each flavor
|
||||||
|
# (production and pre-release) requires the firmware to be signed differently.
|
||||||
|
DAUNTLESS_FIRMWARE_SIZE := 1048576
|
||||||
|
|
||||||
|
# The nearly-production Dauntless chips are "proto1.1"
|
||||||
|
ifneq (,$(wildcard $(RELEASE_GOOGLE_DAUNTLESS_DIR)/proto11.ec.bin))
|
||||||
|
ifneq ($(DAUNTLESS_FIRMWARE_SIZE), $(shell stat -c "%s" $(RELEASE_GOOGLE_DAUNTLESS_DIR)/proto11.ec.bin))
|
||||||
|
$(error GSC firmware size check fail)
|
||||||
endif
|
endif
|
||||||
|
PRODUCT_COPY_FILES += \
|
||||||
|
$(RELEASE_GOOGLE_DAUNTLESS_DIR)/proto11.ec.bin:$(TARGET_COPY_OUT_VENDOR)/firmware/dauntless/proto11.ec.bin
|
||||||
|
$(call dist-for-goals,droid,$(RELEASE_GOOGLE_DAUNTLESS_DIR)/proto11.ec.bin)
|
||||||
|
else
|
||||||
|
$(error GSC firmware not found in $(RELEASE_GOOGLE_DAUNTLESS_DIR))
|
||||||
|
endif
|
||||||
|
|
||||||
|
# The production Dauntless chips are "evt"
|
||||||
|
ifneq (,$(wildcard $(RELEASE_GOOGLE_DAUNTLESS_DIR)/evt.ec.bin))
|
||||||
|
ifneq ($(DAUNTLESS_FIRMWARE_SIZE), $(shell stat -c "%s" $(RELEASE_GOOGLE_DAUNTLESS_DIR)/evt.ec.bin))
|
||||||
|
$(error GSC firmware size check fail)
|
||||||
|
endif
|
||||||
|
PRODUCT_COPY_FILES += \
|
||||||
|
$(RELEASE_GOOGLE_DAUNTLESS_DIR)/evt.ec.bin:$(TARGET_COPY_OUT_VENDOR)/firmware/dauntless/evt.ec.bin
|
||||||
|
$(call dist-for-goals,droid,$(RELEASE_GOOGLE_DAUNTLESS_DIR)/evt.ec.bin)
|
||||||
|
else
|
||||||
|
$(error GSC firmware not found in $(RELEASE_GOOGLE_DAUNTLESS_DIR))
|
||||||
|
endif
|
||||||
|
|
||||||
|
# New 2023 production Dauntless chips are "d3m2"
|
||||||
|
ifneq (,$(wildcard $(RELEASE_GOOGLE_DAUNTLESS_DIR)/d3m2.ec.bin))
|
||||||
|
ifneq ($(DAUNTLESS_FIRMWARE_SIZE), $(shell stat -c "%s" $(RELEASE_GOOGLE_DAUNTLESS_DIR)/d3m2.ec.bin))
|
||||||
|
$(error GSC firmware size check fail)
|
||||||
|
endif
|
||||||
|
PRODUCT_COPY_FILES += \
|
||||||
|
$(RELEASE_GOOGLE_DAUNTLESS_DIR)/d3m2.ec.bin:$(TARGET_COPY_OUT_VENDOR)/firmware/dauntless/d3m2.ec.bin
|
||||||
|
$(call dist-for-goals,droid,$(RELEASE_GOOGLE_DAUNTLESS_DIR)/d3m2.ec.bin)
|
||||||
|
else
|
||||||
|
$(error GSC firmware not found in $(RELEASE_GOOGLE_DAUNTLESS_DIR))
|
||||||
|
endif
|
||||||
|
|
||||||
|
# Intermediate image artifacts are published, but aren't included in /vendor/firmware/dauntless
|
||||||
|
# in PRODUCT_COPY_FILES
|
||||||
|
# This is because intermediate images aren't needed on user devices, but the published artifact
|
||||||
|
# is useful for flashstation purposes.
|
||||||
|
|
||||||
|
# proto11 chips need an intermediate image prior to upgrading to newever versions of the firmware
|
||||||
|
ifneq (,$(wildcard vendor/google_nos/prebuilts/dauntless/intermediate_images/proto11_intermediate.ec.bin))
|
||||||
|
ifneq ($(DAUNTLESS_FIRMWARE_SIZE), $(shell stat -c "%s" vendor/google_nos/prebuilts/dauntless/intermediate_images/proto11_intermediate.ec.bin))
|
||||||
|
$(error GSC firmware size check fail)
|
||||||
|
endif
|
||||||
|
$(call dist-for-goals,droid,vendor/google_nos/prebuilts/dauntless/intermediate_images/proto11_intermediate.ec.bin)
|
||||||
|
endif
|
||||||
|
# evt chips need an intermediate image prior to upgrading to newever versions of the firmware
|
||||||
|
ifneq (,$(wildcard vendor/google_nos/prebuilts/dauntless/intermediate_images/evt_intermediate.ec.bin))
|
||||||
|
ifneq ($(DAUNTLESS_FIRMWARE_SIZE), $(shell stat -c "%s" vendor/google_nos/prebuilts/dauntless/intermediate_images/evt_intermediate.ec.bin))
|
||||||
|
$(error GSC firmware size check fail)
|
||||||
|
endif
|
||||||
|
$(call dist-for-goals,droid,vendor/google_nos/prebuilts/dauntless/intermediate_images/evt_intermediate.ec.bin)
|
||||||
|
endif
|
||||||
|
# d3m2 chips need an intermediate image prior to upgrading to newever versions of the firmware
|
||||||
|
ifneq (,$(wildcard vendor/google_nos/prebuilts/dauntless/intermediate_images/d3m2_intermediate.ec.bin))
|
||||||
|
ifneq ($(DAUNTLESS_FIRMWARE_SIZE), $(shell stat -c "%s" vendor/google_nos/prebuilts/dauntless/intermediate_images/d3m2_intermediate.ec.bin))
|
||||||
|
$(error GSC firmware size check fail)
|
||||||
|
endif
|
||||||
|
$(call dist-for-goals,droid,vendor/google_nos/prebuilts/dauntless/intermediate_images/d3m2_intermediate.ec.bin)
|
||||||
|
endif
|
||||||
|
|
||||||
|
endif # $(wildcard vendor)
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
# Pet watchdog timer every half of its timeout period.
|
# Pet watchdog timer every half of its timeout period.
|
||||||
service gs_watchdogd /system_ext/bin/gs_watchdogd
|
service gs_watchdogd /system_ext/bin/gs_watchdogd
|
||||||
|
user root
|
||||||
class core
|
class core
|
||||||
oneshot
|
oneshot
|
||||||
seclabel u:r:gs_watchdogd:s0
|
seclabel u:r:gs_watchdogd:s0
|
||||||
|
|
|
@ -1,2 +1,8 @@
|
||||||
|
# proactive kill
|
||||||
type sysfs_pakills, fs_type, sysfs_type;
|
type sysfs_pakills, fs_type, sysfs_type;
|
||||||
|
|
||||||
|
# bts dump
|
||||||
type vendor_bts_debugfs, fs_type, debugfs_type;
|
type vendor_bts_debugfs, fs_type, debugfs_type;
|
||||||
|
|
||||||
|
# proc_compaction_proactiveness type
|
||||||
|
type proc_compaction_proactiveness, fs_type, proc_type;
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
genfscon proc /sys/kernel/sched_pelt_multiplier u:object_r:proc_sched:s0
|
genfscon proc /sys/kernel/sched_pelt_multiplier u:object_r:proc_sched:s0
|
||||||
genfscon sysfs /kernel/vendor_mm/pa_kill u:object_r:sysfs_pakills:s0
|
genfscon sysfs /kernel/vendor_mm/pa_kill u:object_r:sysfs_pakills:s0
|
||||||
genfscon debugfs /bts u:object_r:vendor_bts_debugfs:s0
|
genfscon debugfs /bts u:object_r:vendor_bts_debugfs:s0
|
||||||
|
genfscon proc /sys/vm/compaction_proactiveness u:object_r:proc_compaction_proactiveness:s0
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
# MM
|
# MM
|
||||||
allow vendor_init proc_percpu_pagelist_high_fraction:file w_file_perms;
|
allow vendor_init proc_percpu_pagelist_high_fraction:file w_file_perms;
|
||||||
|
allow vendor_init proc_compaction_proactiveness:file w_file_perms;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue