Snap for 12065372 from 846652c1b9
to 24Q4-release
Change-Id: Ia43fa3cdd2051d71b760dc9732aa04fd15632d39
This commit is contained in:
commit
47cc7287e7
6 changed files with 73 additions and 7 deletions
38
BoardConfig-16k-common.mk
Normal file
38
BoardConfig-16k-common.mk
Normal file
|
@ -0,0 +1,38 @@
|
||||||
|
#
|
||||||
|
# Copyright (C) 2024 The Android Open-Source Project
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
#
|
||||||
|
|
||||||
|
ifeq ($(TARGET_BOOTS_16K),true)
|
||||||
|
# Configures the 16kb kernel directory.
|
||||||
|
TARGET_KERNEL_DIR := $(TARGET_KERNEL_DIR)/16kb
|
||||||
|
|
||||||
|
else ifeq ($(PRODUCT_16K_DEVELOPER_OPTION),true)
|
||||||
|
# Configures the 16kb kernel and modules for OTA updates.
|
||||||
|
TARGET_KERNEL_DIR_16K := $(TARGET_KERNEL_DIR)/16kb
|
||||||
|
BOARD_KERNEL_PATH_16K := $(TARGET_KERNEL_DIR_16K)/Image.lz4
|
||||||
|
|
||||||
|
BOARD_KERNEL_MODULES_16K += $(file < $(TARGET_KERNEL_DIR_16K)/vendor_kernel_boot.modules.load)
|
||||||
|
BOARD_KERNEL_MODULES_16K += $(file < $(TARGET_KERNEL_DIR_16K)/system_dlkm.modules.load)
|
||||||
|
BOARD_KERNEL_MODULES_16K += $(file < $(TARGET_KERNEL_DIR_16K)/vendor_dlkm.modules.load)
|
||||||
|
BOARD_KERNEL_MODULES_16K := $(foreach module,$(BOARD_KERNEL_MODULES_16K),$(TARGET_KERNEL_DIR_16K)/$(notdir $(module)))
|
||||||
|
BOARD_PREBUILT_DTBOIMAGE_16KB := $(TARGET_KERNEL_DIR_16K)/dtbo.img
|
||||||
|
|
||||||
|
# Zuma targets use exynos-bcm_dbg.ko module instead of bcm_dbg.ko.
|
||||||
|
BOARD_KERNEL_MODULES_16K := $(filter-out %/bcm_dbg.ko,$(BOARD_KERNEL_MODULES_16K))
|
||||||
|
BOARD_KERNEL_MODULES_LOAD_16K := $(foreach module,$(BOARD_KERNEL_MODULES_16K),$(notdir $(module)))
|
||||||
|
|
||||||
|
BOARD_16K_OTA_USE_INCREMENTAL := true
|
||||||
|
BOARD_16K_OTA_MOVE_VENDOR := true
|
||||||
|
endif
|
|
@ -16,6 +16,9 @@
|
||||||
include build/make/target/board/BoardConfigMainlineCommon.mk
|
include build/make/target/board/BoardConfigMainlineCommon.mk
|
||||||
include build/make/target/board/BoardConfigPixelCommon.mk
|
include build/make/target/board/BoardConfigPixelCommon.mk
|
||||||
|
|
||||||
|
# Include settings for 16k developer option, if enabled
|
||||||
|
include device/google/zuma/BoardConfig-16k-common.mk
|
||||||
|
|
||||||
# Should be uncommented after fixing vndk-sp violation is fixed.
|
# Should be uncommented after fixing vndk-sp violation is fixed.
|
||||||
PRODUCT_FULL_TREBLE_OVERRIDE := true
|
PRODUCT_FULL_TREBLE_OVERRIDE := true
|
||||||
|
|
||||||
|
|
|
@ -59,26 +59,39 @@ public class CopyEfsTest extends BaseHostJUnit4Test {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void testDumpF2FS(String name) throws Exception {
|
private void testDumpF2FS(String name) throws Exception {
|
||||||
getDevice().executeShellV2Command(String.format("cp /dev/block/by-name/%s /data/local/tmp/efs_test/%s.img", name, name));
|
getDevice().executeShellCommand(String.format("cp /dev/block/by-name/%s /data/local/tmp/efs_test/%s.img", name, name));
|
||||||
CommandResult r = getDevice().executeShellV2Command(String.format("dump.f2fs -rfPo /data/local/tmp/efs_test/dump /data/local/tmp/efs_test/%s.img", name));
|
|
||||||
|
// The device was mounted r/w. To get a clean image, we run fsck, and then mount to allow mount time fixes to happen.
|
||||||
|
// We can then dump and mount read only to ensure the contents should be the same.
|
||||||
|
getDevice().executeShellCommand(String.format("fsck.f2fs -f /data/local/tmp/efs_test/%s.img", name, name));
|
||||||
|
CommandResult r = getDevice().executeShellV2Command(String.format("mount /data/local/tmp/efs_test/%s.img /data/local/tmp/efs_test/mnt", name));
|
||||||
|
assertEquals(r.getExitCode().intValue(), 0);
|
||||||
|
r = getDevice().executeShellV2Command("umount /data/local/tmp/efs_test/mnt");
|
||||||
|
assertEquals(r.getExitCode().intValue(), 0);
|
||||||
|
|
||||||
|
r = getDevice().executeShellV2Command(String.format("dump.f2fs -rfPo /data/local/tmp/efs_test/dump /data/local/tmp/efs_test/%s.img", name));
|
||||||
assertEquals(r.getExitCode().intValue(), 0);
|
assertEquals(r.getExitCode().intValue(), 0);
|
||||||
r = getDevice().executeShellV2Command(String.format("mount -r /data/local/tmp/efs_test/%s.img /data/local/tmp/efs_test/mnt", name));
|
r = getDevice().executeShellV2Command(String.format("mount -r /data/local/tmp/efs_test/%s.img /data/local/tmp/efs_test/mnt", name));
|
||||||
assertEquals(r.getExitCode().intValue(), 0);
|
assertEquals(r.getExitCode().intValue(), 0);
|
||||||
|
|
||||||
assertEquals("", getDevice().executeShellCommand("diff -rq /data/local/tmp/efs_test/mnt /data/local/tmp/efs_test/dump"));
|
assertEquals("", getDevice().executeShellCommand("diff -rq /data/local/tmp/efs_test/mnt /data/local/tmp/efs_test/dump"));
|
||||||
// Remove timestamps at positions 6 and 7, because ls on device does not support --time-style
|
// Remove timestamps at positions 6 and 7, because ls on device does not support --time-style
|
||||||
// Remove totals because on disk block usage may change depending on filesystem
|
// Remove totals because on disk block usage may change depending on filesystem
|
||||||
String ls_cmd = "ls -alLnR /data/local/tmp/efs_test/%s | awk {\'$6=\"\";$7=\"\";if ($1 != \"total\"){print $0'}";
|
String ls_cmd = "cd /data/local/tmp/efs_test/%s;ls -AlLnR . | awk {'$6=\"\";$7=\"\";if ($1 != \"total\"){print $0}'}";
|
||||||
String mnt_ls = getDevice().executeShellCommand(String.format(ls_cmd, "mnt"));
|
String mnt_ls = getDevice().executeShellCommand(String.format(ls_cmd, "mnt"));
|
||||||
|
assertEquals(getDevice().executeShellCommand("echo $?"), "0\n");
|
||||||
String dump_ls = getDevice().executeShellCommand(String.format(ls_cmd, "dump"));
|
String dump_ls = getDevice().executeShellCommand(String.format(ls_cmd, "dump"));
|
||||||
|
assertEquals(getDevice().executeShellCommand("echo $?"), "0\n");
|
||||||
assertEquals(mnt_ls, dump_ls);
|
assertEquals(mnt_ls, dump_ls);
|
||||||
getDevice().executeShellCommand("umount -r /data/local/tmp/efs_test/mnt");
|
|
||||||
|
getDevice().executeShellCommand("umount /data/local/tmp/efs_test/mnt");
|
||||||
getDevice().executeShellCommand("rm -rf /data/local/tmp/efs_test/dump/*");
|
getDevice().executeShellCommand("rm -rf /data/local/tmp/efs_test/dump/*");
|
||||||
getDevice().executeShellCommand("rm /data/local/tmp/efs_test/" + name + ".img");
|
getDevice().executeShellCommand("rm /data/local/tmp/efs_test/" + name + ".img");
|
||||||
}
|
}
|
||||||
|
|
||||||
@After
|
@After
|
||||||
public void tearDown() throws Exception {
|
public void tearDown() throws Exception {
|
||||||
getDevice().executeShellCommand("umount -r /data/local/tmp/efs_test/mnt");
|
getDevice().executeShellCommand("umount /data/local/tmp/efs_test/mnt");
|
||||||
getDevice().executeShellCommand("rm -rf /data/local/tmp/efs_test");
|
getDevice().executeShellCommand("rm -rf /data/local/tmp/efs_test");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -735,6 +735,9 @@ on property:sys.boot_completed=1
|
||||||
# Set kswapd affinity
|
# Set kswapd affinity
|
||||||
write /sys/kernel/vendor_mm/kswapd_cpu_affinity ff
|
write /sys/kernel/vendor_mm/kswapd_cpu_affinity ff
|
||||||
|
|
||||||
|
# Set kcompactd affinity
|
||||||
|
write /sys/kernel/vendor_mm/kcompactd_cpu_affinity ff
|
||||||
|
|
||||||
# Adjust watermark level
|
# Adjust watermark level
|
||||||
write /proc/sys/vm/watermark_scale_factor 200
|
write /proc/sys/vm/watermark_scale_factor 200
|
||||||
|
|
||||||
|
|
11
device.mk
11
device.mk
|
@ -269,9 +269,18 @@ PRODUCT_PACKAGES += \
|
||||||
csffw_image_prebuilt__firmware_prebuilt_ttux_mali_csffw.bin \
|
csffw_image_prebuilt__firmware_prebuilt_ttux_mali_csffw.bin \
|
||||||
libGLES_mali \
|
libGLES_mali \
|
||||||
vulkan.mali \
|
vulkan.mali \
|
||||||
libOpenCL \
|
|
||||||
libgpudataproducer
|
libgpudataproducer
|
||||||
|
|
||||||
|
# Install the OpenCL ICD Loader
|
||||||
|
PRODUCT_SOONG_NAMESPACES += external/OpenCL-ICD-Loader
|
||||||
|
PRODUCT_PACKAGES += \
|
||||||
|
libOpenCL \
|
||||||
|
mali_icd__customer_pixel_opencl-icd_ARM.icd
|
||||||
|
ifeq ($(DEVICE_IS_64BIT_ONLY),false)
|
||||||
|
PRODUCT_PACKAGES += \
|
||||||
|
mali_icd__customer_pixel_opencl-icd_ARM32.icd
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(USE_SWIFTSHADER),true)
|
ifeq ($(USE_SWIFTSHADER),true)
|
||||||
PRODUCT_PACKAGES += \
|
PRODUCT_PACKAGES += \
|
||||||
libEGL_angle \
|
libEGL_angle \
|
||||||
|
|
|
@ -74,7 +74,7 @@ constexpr char kProcInterruptsPath[] = "/proc/interrupts";
|
||||||
constexpr char kProcIrqPath[] = "/proc/irq/";
|
constexpr char kProcIrqPath[] = "/proc/irq/";
|
||||||
constexpr char kSmpAffinityList[] = "/smp_affinity_list";
|
constexpr char kSmpAffinityList[] = "/smp_affinity_list";
|
||||||
#ifndef UDC_PATH
|
#ifndef UDC_PATH
|
||||||
#define UDC_PATH "/sys/class/udc/11210000.dwc3/"
|
#define UDC_PATH "/sys/devices/platform/11210000.usb/11210000.dwc3/udc/11210000.dwc3/"
|
||||||
#endif
|
#endif
|
||||||
static MonitorFfs monitorFfs(kGadgetName);
|
static MonitorFfs monitorFfs(kGadgetName);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue