动态添加Include标签,本质就是把Include标签当作一个Fragment就好了

本文详细介绍了如何在XML中通过动态添加Include标签,优化处理待办审核模块中的多个发布渠道和审核内容的问题。通过引入一次Include标签作为View来使用,实现了界面布局的固定性和灵活性之间的平衡,简化了界面设计与维护的工作。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

在我的项目中的待办审核模块发现一个待办事件有多个发布渠道和审核内容。


所以之前在XML写死的布局代码已经不能使用了。


由于发布渠道和审核内容的界面布局是固定的,所以想到了用Include标签动态添加的方式来做。


for(int i=0;i<channels.size();i++){//循环看有几个发布渠道和发布内容的Model类
                                        View LayoutView=getLayoutInflater().inflate(R.layout.todo_list_include, null);//然后引入一次Include标签作为一个View来使用
                                        LayoutView.setId(i);
                                        includeLayout.addView(LayoutView);//在指定的区域中添加这个View
                                        String[] checkedPoint=channels.get(i).getChannelName().split(";");
                                        List<CheckBox> tempCheckBoxList=new ArrayList<CheckBox>();
                                        tempCheckBoxList.add((CheckBox)LayoutView.findViewById(R.id.CheckBox1));//在指定的Include的View中将多选按钮中初始化
                                        tempCheckBoxList.add((CheckBox)LayoutView.findViewById(R.id.CheckBox2));
                                        tempCheckBoxList.add((CheckBox)LayoutView.findViewById(R.id.CheckBox3));
                                        tempCheckBoxList.add((CheckBox)LayoutView.findViewById(R.id.CheckBox4));
                                        tempCheckBoxList.add((CheckBox)LayoutView.findViewById(R.id.CheckBox5));
                                        tempCheckBoxList.add((CheckBox)LayoutView.findViewById(R.id.CheckBox6));
                                        tempCheckBoxList.add((CheckBox)LayoutView.findViewById(R.id.CheckBox7));
                                        ((CheckBox)LayoutView.findViewById(R.id.CheckBox1)).setEnabled(false);
                                        ((CheckBox)LayoutView.findViewById(R.id.CheckBox2)).setEnabled(false);
                                        ((CheckBox)LayoutView.findViewById(R.id.CheckBox3)).setEnabled(false);
                                        ((CheckBox)LayoutView.findViewById(R.id.CheckBox4)).setEnabled(false);
                                        ((CheckBox)LayoutView.findViewById(R.id.CheckBox5)).setEnabled(false);
                                        ((CheckBox)LayoutView.findViewById(R.id.CheckBox6)).setEnabled(false);
                                        ((CheckBox)LayoutView.findViewById(R.id.CheckBox7)).setEnabled(false);
                                        
                                        for(int j=0;j<checkedPoint.length;j++){
                                        
                                            tempCheckBoxList.get(Integer.parseInt(checkedPoint[j])).setChecked(true);
                                            //CheckBox_List.get(Integer.parseInt(checkedPoint[j])).setChecked(true);
                                            
                                        }
                                        ((TextView)LayoutView.findViewById(R.id.content)).setText(BaseTools.ToDBC(channels.get(i).getContcent()));/在指定的Include的View中将ID为Content的TextView初始化并赋值
                                    }  





从这段代码中我们可以看到 我们将Include标签当作了一个Fragment来使用了,并将新增的Include标签加入到指定的布局位置上去。

但无论是初始化Include中的组件还是对Include中的组件赋值,基本上和Fragment的写法都是一样的。
// SPDX-License-Identifier: GPL-2.0 /* Copyright (c) 2020 MediaTek Inc. */ #include <dt-bindings/clock/mt6878-clk.h> // #include "mediatek/chrome_regulator_wl2866d.dtsi" &seninf_top { seninf_csi_port_0: seninf-csi-port-0 { compatible = "mediatek,seninf"; csi-port = "0"; #if 0 nvmem-cells = <&csi_efuse0>; nvmem-cell-names = "rg_csi"; #endif port { seninf_csi_port_0_in: endpoint { remote-endpoint = <&sensor0_out>; }; }; }; seninf_csi_port_1: seninf-csi-port-1 { compatible = "mediatek,seninf"; csi-port = "1"; #if 0 nvmem-cells = <&csi_efuse1>; nvmem-cell-names = "rg_csi"; #endif port { seninf_csi_port_1_in: endpoint { remote-endpoint = <&sensor1_out>; }; }; }; seninf_csi_port_3: seninf-csi-port-3 { compatible = "mediatek,seninf"; csi-port = "3"; #if 0 nvmem-cells = <&csi_efuse3>; nvmem-cell-names = "rg_csi"; #endif port { seninf_csi_port_3_in: endpoint { remote-endpoint = <&sensor2_out>; }; }; }; }; /* CAMERA GPIO standardization */ &pio { camera_pins_cam0_mclk_off: camera-pins-cam0-mclk-off { pins-cmd-dat { pinmux = <PINMUX_GPIO94__FUNC_GPIO94>; drive-strength = <1>; }; }; camera_pins_cam0_mclk_2ma: camera-pins-cam0-mclk-2ma { pins-cmd-dat { pinmux = <PINMUX_GPIO94__FUNC_CMMCLK2>; drive-strength = <0>; }; }; camera_pins_cam0_mclk_4ma: camera-pins-cam0-mclk-4ma { pins-cmd-dat { pinmux = <PINMUX_GPIO94__FUNC_CMMCLK2>; drive-strength = <1>; }; }; camera_pins_cam0_mclk_6ma: camera-pins-cam0-mclk-6ma { pins-cmd-dat { pinmux = <PINMUX_GPIO94__FUNC_CMMCLK2>; drive-strength = <2>; }; }; camera_pins_cam0_mclk_8ma: camera-pins-cam0-mclk-8ma { pins-cmd-dat { pinmux = <PINMUX_GPIO94__FUNC_CMMCLK2>; drive-strength = <3>; }; }; camera_pins_cam0_rst_0: cam0@0 { pins-cmd-dat { pinmux = <PINMUX_GPIO25__FUNC_GPIO25>; slew-rate = <1>; output-low; }; }; camera_pins_cam0_rst_1: cam0@1 { pins-cmd-dat { pinmux = <PINMUX_GPIO25__FUNC_GPIO25>; slew-rate = <1>; output-high; }; }; camera_pins_cam0_avdd_0: cam0@2 { pins-cmd-dat { pinmux = <PINMUX_GPIO4__FUNC_GPIO4>; slew-rate = <1>; output-low; }; }; camera_pins_cam0_avdd_1: cam0@3 { pins-cmd-dat { pinmux = <PINMUX_GPIO4__FUNC_GPIO4>; slew-rate = <1>; output-high; }; }; camera_pins_cam0_dvdd_0: cam0@4 { pins-cmd-dat { pinmux = <PINMUX_GPIO42__FUNC_GPIO42>; slew-rate = <1>; output-low; }; }; camera_pins_cam0_dvdd_1: cam0@5 { pins-cmd-dat { pinmux = <PINMUX_GPIO42__FUNC_GPIO42>; slew-rate = <1>; output-high; }; }; camera_pins_cam0_dovdd_0: cam0@6 { pins-cmd-dat { pinmux = <PINMUX_GPIO193__FUNC_GPIO193>; slew-rate = <1>; output-low; }; }; camera_pins_cam0_dovdd_1: cam0@7 { pins-cmd-dat { pinmux = <PINMUX_GPIO193__FUNC_GPIO193>; slew-rate = <1>; output-high; }; }; camera_pins_cam0_afvdd_0: cam0@8 { pins-cmd-dat { pinmux = <PINMUX_GPIO22__FUNC_GPIO22>; slew-rate = <1>; output-low; }; }; camera_pins_cam0_afvdd_1: cam0@9 { pins-cmd-dat { pinmux = <PINMUX_GPIO22__FUNC_GPIO22>; slew-rate = <1>; output-high; }; }; camera_pins_cam1_mclk_off: camera-pins-cam1-mclk-off { pins-cmd-dat { pinmux = <PINMUX_GPIO96__FUNC_GPIO96>; drive-strength = <1>; }; }; camera_pins_cam1_mclk_2ma: camera-pins-cam1-mclk-2ma { pins-cmd-dat { pinmux = <PINMUX_GPIO96__FUNC_CMMCLK4>; drive-strength = <0>; }; }; camera_pins_cam1_mclk_4ma: camera-pins-cam1-mclk-4ma { pins-cmd-dat { pinmux = <PINMUX_GPIO96__FUNC_CMMCLK4>; drive-strength = <1>; }; }; camera_pins_cam1_mclk_6ma: camera-pins-cam1-mclk-6ma { pins-cmd-dat { pinmux = <PINMUX_GPIO96__FUNC_CMMCLK4>; drive-strength = <2>; }; }; camera_pins_cam1_mclk_8ma: camera-pins-cam1-mclk-8ma { pins-cmd-dat { pinmux = <PINMUX_GPIO96__FUNC_CMMCLK4>; drive-strength = <3>; }; }; camera_pins_cam1_rst_0: cam1@0 { pins-cmd-dat { pinmux = <PINMUX_GPIO28__FUNC_GPIO28>; slew-rate = <1>; output-low; }; }; camera_pins_cam1_rst_1: cam1@1 { pins-cmd-dat { pinmux = <PINMUX_GPIO28__FUNC_GPIO28>; slew-rate = <1>; output-high; }; }; camera_pins_cam1_dvdd_0: cam1@2 { pins-cmd-dat { pinmux = <PINMUX_GPIO23__FUNC_GPIO23>; slew-rate = <1>; output-low; }; }; camera_pins_cam1_dvdd_1: cam1@3 { pins-cmd-dat { pinmux = <PINMUX_GPIO23__FUNC_GPIO23>; slew-rate = <1>; output-high; }; }; camera_pins_cam1_avdd_0: cam1@4 { pins-cmd-dat { pinmux = <PINMUX_GPIO29__FUNC_GPIO29>; slew-rate = <1>; output-low; }; }; camera_pins_cam1_avdd_1: cam1@5 { pins-cmd-dat { pinmux = <PINMUX_GPIO29__FUNC_GPIO29>; slew-rate = <1>; output-high; }; }; camera_pins_cam1_dovdd_0: cam1@6 { pins-cmd-dat { pinmux = <PINMUX_GPIO193__FUNC_GPIO193>; slew-rate = <1>; output-low; }; }; camera_pins_cam1_dovdd_1: cam1@7 { pins-cmd-dat { pinmux = <PINMUX_GPIO193__FUNC_GPIO193>; slew-rate = <1>; output-high; }; }; camera_pins_default: camdefault { }; }; /* CAMERA GPIO end */ &mtk_composite_v4l2_2 { #address-cells = <1>; #size-cells = <0>; port@0 { reg = <0>; main_af_endpoint: endpoint { remote-endpoint = <&main_af>; }; }; }; &i2c8 { status = "okay"; clock-frequency = <1000000>; sensor0: sensor0@20 { compatible = "mediatek,imgsensor"; sensor-names = "chromemain_mipi_raw"; reg = <0x20>; #reindex-to = <0>; #cust-aov-csi-clk = <312>; #thermal-sensor-cells = <0>; pinctrl-names = "mclk_off", "mclk_2mA", "mclk_4mA", "mclk_6mA", "mclk_8mA", "rst_low", "rst_high", "avdd_off", "avdd_on", "dvdd_off", "dvdd_on", "dovdd_off", "dovdd_on", "afvdd_off", "afvdd_on", "pdn_low", "pdn_high"; pinctrl-0 = <&camera_pins_cam0_mclk_off>; pinctrl-1 = <&camera_pins_cam0_mclk_2ma>; pinctrl-2 = <&camera_pins_cam0_mclk_4ma>; pinctrl-3 = <&camera_pins_cam0_mclk_6ma>; pinctrl-4 = <&camera_pins_cam0_mclk_8ma>; pinctrl-5 = <&camera_pins_cam0_rst_0>; pinctrl-6 = <&camera_pins_cam0_rst_1>; pinctrl-7 = <&camera_pins_cam0_avdd_0>; pinctrl-8 = <&camera_pins_cam0_avdd_1>; pinctrl-9 = <&camera_pins_cam0_dvdd_0>; pinctrl-10 = <&camera_pins_cam0_dvdd_1>; pinctrl-11 = <&camera_pins_cam0_dovdd_0>; pinctrl-12 = <&camera_pins_cam0_dovdd_1>; pinctrl-13 = <&camera_pins_cam0_afvdd_0>; pinctrl-14 = <&camera_pins_cam0_afvdd_1>; clocks = <&topckgen_clk CLK_TOP_UVPLL192M_D32>, <&topckgen_clk CLK_TOP_UVPLL192M_D16>, <&topckgen_clk CLK_TOP_OSC_D20>, <&topckgen_clk CLK_TOP_UVPLL192M_D10>, <&topckgen_clk CLK_TOP_UVPLL192M_D8>, <&topckgen_clk CLK_TOP_TCK_26M_MX9>, <&topckgen_clk CLK_TOP_UNIVPLL_D6_D8>, <&topckgen_clk CLK_TOP_CAMTG5_SEL>; clock-names = "6", "12", "13", "19.2", "24", "26", "52", "mclk"; status = "okay"; port { sensor0_out: endpoint { remote-endpoint = <&seninf_csi_port_1_in>; }; }; }; camera_af_main@0c { compatible = "oplus,dw9800s_24678"; reg = <0x0c>; pinctrl-0 = <&camera_pins_cam0_afvdd_0>; pinctrl-1 = <&camera_pins_cam0_afvdd_1>; port { main_af: endpoint { remote-endpoint = <&main_af_endpoint>; }; }; }; mtk_camera_eeprom1:camera-eeprom1@54 { compatible = "mediatek,camera_eeprom"; reg = <0x54>; status = "okay"; }; }; &i2c2 { status = "okay"; clock-frequency = <1000000>; sensor1: sensor1@6c { compatible = "mediatek,imgsensor"; sensor-names = "chromefront_mipi_raw"; reg = <0x6c>; #thermal-sensor-cells = <0>; pinctrl-names = "mclk_off", "mclk_2mA", "mclk_4mA", "mclk_6mA", "mclk_8mA", "rst_low", "rst_high", "avdd_off", "avdd_on", "dvdd_off", "dvdd_on", "dovdd_off", "dovdd_on", "pdn_low", "pdn_high"; pinctrl-0 = <&camera_pins_cam1_mclk_off>; pinctrl-1 = <&camera_pins_cam1_mclk_2ma>; pinctrl-2 = <&camera_pins_cam1_mclk_4ma>; pinctrl-3 = <&camera_pins_cam1_mclk_6ma>; pinctrl-4 = <&camera_pins_cam1_mclk_8ma>; pinctrl-5 = <&camera_pins_cam1_rst_0>; pinctrl-6 = <&camera_pins_cam1_rst_1>; pinctrl-7 = <&camera_pins_cam1_avdd_0>; pinctrl-8 = <&camera_pins_cam1_avdd_1>; pinctrl-9 = <&camera_pins_cam1_dvdd_0>; pinctrl-10 = <&camera_pins_cam1_dvdd_1>; pinctrl-11 = <&camera_pins_cam1_dovdd_0>; pinctrl-12 = <&camera_pins_cam1_dovdd_1>; clocks = <&topckgen_clk CLK_TOP_UVPLL192M_D32>, <&topckgen_clk CLK_TOP_UVPLL192M_D16>, <&topckgen_clk CLK_TOP_OSC_D20>, <&topckgen_clk CLK_TOP_UVPLL192M_D10>, <&topckgen_clk CLK_TOP_UVPLL192M_D8>, <&topckgen_clk CLK_TOP_TCK_26M_MX9>, <&topckgen_clk CLK_TOP_UNIVPLL_D6_D8>, <&topckgen_clk CLK_TOP_CAMTG3_SEL>; clock-names = "6", "12", "13", "19.2", "24", "26", "52", "mclk"; status = "okay"; port { sensor1_out: endpoint { remote-endpoint = <&seninf_csi_port_0_in>; }; }; }; mtk_camera_eeprom0:camera-eeprom0@50 { compatible = "mediatek,camera_eeprom"; reg = <0x50>; status = "okay"; }; }; &i2c3 { clock-frequency = <400000>; #address-cells = <1>; #size-cells = <0>; aw36410:aw36410@63 { compatible = "oplus,aw36410_chrome"; #address-cells = <1>; #size-cells = <0>; reg = <0x63>; #cooling-cells = <2>; pinctrl-names = "default", "hwen-high", "hwen-low"; pinctrl-0 = <&aw36410_pins_default>; pinctrl-1 = <&aw36410_pins_hwen_high>; pinctrl-2 = <&aw36410_pins_hwen_low>; status = "okay"; flash@0{ reg = <0>; type = <0>; ct = <0>; part = <0>; port { fl_core_0: endpoint { remote-endpoint = <&flashlight_0>; }; }; }; }; }; &pio { aw36410_pins_default: default { }; aw36410_pins_hwen_high: hwen-high { pins_cmd_dat { pinmux = <PINMUX_GPIO1__FUNC_GPIO1>;// nobody use,just test slew-rate = <1>; output-high; }; }; aw36410_pins_hwen_low: hwen-low { pins_cmd_dat { pinmux = <PINMUX_GPIO1__FUNC_GPIO1>; slew-rate = <1>; output-low; }; }; }; &mtk_composite_v4l2_1 { #address-cells = <1>; #size-cells = <0>; port@0 { reg = <0>; flashlight_0: endpoint { remote-endpoint = <&fl_core_0>; }; }; };分析下这个文件的这个编译问题 DTC ../kernel/kernel_device_modules-6.1/arch/arm64/boot/dts/mediatek/oplus6878_25683.dtb /work/oppo_V45875948/0623_20/source/vnd/kernel-6.1/../kernel/kernel_device_modules-6.1/arch/arm64/boot/dts/mediatek/cust_mt6878_casioy_camera_v4l2.dtsi:6.40-18.5: ERROR (duplicate_label): /fragment@69/__overlay__/seninf-csi-port-1: Duplicate label 'seninf_csi_port_1' on /fragment@69/__overlay__/seninf-csi-port-1 and /fragment@3/__overlay__/seninf-csi-port-1 /work/oppo_V45875948/0623_20/source/vnd/kernel-6.1/../kernel/kernel_device_modules-6.1/arch/arm64/boot/dts/mediatek/cust_mt6878_casioy_camera_v4l2.dtsi:14.36-16.7: ERROR (duplicate_label): /fragment@69/__overlay__/seninf-csi-port-1/port/endpoint: Duplicate label 'seninf_csi_port_1_in' on /fragment@69/__overlay__/seninf-csi-port-1/port/endpoint and /fragment@3/__overlay__/seninf-csi-port-1/port/endpoint /work/oppo_V45875948/0623_20/source/vnd/kernel-6.1/../kernel/kernel_device_modules-6.1/arch/arm64/boot/dts/mediatek/cust_mt6878_casioy_camera_v4l2.dtsi:34.40-46.5: ERROR (duplicate_label): /fragment@69/__overlay__/seninf-csi-port-3: Duplicate label 'seninf_csi_port_3' on /fragment@69/__overlay__/seninf-csi-port-3 and /fragment@3/__overlay__/seninf-csi-port-3 /work/oppo_V45875948/0623_20/source/vnd/kernel-6.1/../kernel/kernel_device_modules-6.1/arch/arm64/boot/dts/mediatek/cust_mt6878_casioy_camera_v4l2.dtsi:42.36-44.7: ERROR (duplicate_label): /fragment@69/__overlay__/seninf-csi-port-3/port/endpoint: Duplicate label 'seninf_csi_port_3_in' on /fragment@69/__overlay__/seninf-csi-port-3/port/endpoint and /fragment@3/__overlay__/seninf-csi-port-3/port/endpoint /work/oppo_V45875948/0623_20/source/vnd/kernel-6.1/../kernel/kernel_device_modules-6.1/arch/arm64/boot/dts/mediatek/cust_mt6878_casioy_camera_v4l2.dtsi:51.55-56.4: ERROR (duplicate_label): /fragment@70/__overlay__/camera-pins-cam0-mclk-off: Duplicate label 'camera_pins_cam0_mclk_off' on /fragment@70/__overlay__/camera-pins-cam0-mclk-off and /fragment@4/__overlay__/camera-pins-cam0-mclk-off /work/oppo_V45875948/0623_20/source/vnd/kernel-6.1/../kernel/kernel_device_modules-6.1/arch/arm64/boot/dts/mediatek/cust_mt6878_casioy_camera_v4l2.dtsi:57.55-62.4: ERROR (duplicate_label): /fragment@70/__overlay__/camera-pins-cam0-mclk-2ma: Duplicate label 'camera_pins_cam0_mclk_2ma' on /fragment@70/__overlay__/camera-pins-cam0-mclk-2ma and /fragment@4/__overlay__/camera-pins-cam0-mclk-2ma /work/oppo_V45875948/0623_20/source/vnd/kernel-6.1/../kernel/kernel_device_modules-6.1/arch/arm64/boot/dts/mediatek/cust_mt6878_casioy_camera_v4l2.dtsi:63.55-68.4: ERROR (duplicate_label): /fragment@70/__overlay__/camera-pins-cam0-mclk-4ma: Duplicate label 'camera_pins_cam0_mclk_4ma' on /fragment@70/__overlay__/camera-pins-cam0-mclk-4ma and /fragment@4/__overlay__/camera-pins-cam0-mclk-4ma /work/oppo_V45875948/0623_20/source/vnd/kernel-6.1/../kernel/kernel_device_modules-6.1/arch/arm64/boot/dts/mediatek/cust_mt6878_casioy_camera_v4l2.dtsi:69.55-74.4: ERROR (duplicate_label): /fragment@70/__overlay__/camera-pins-cam0-mclk-6ma: Duplicate label 'camera_pins_cam0_mclk_6ma' on /fragment@70/__overlay__/camera-pins-cam0-mclk-6ma and /fragment@4/__overlay__/camera-pins-cam0-mclk-6ma /work/oppo_V45875948/0623_20/source/vnd/kernel-6.1/../kernel/kernel_device_modules-6.1/arch/arm64/boot/dts/mediatek/cust_mt6878_casioy_camera_v4l2.dtsi:75.55-80.4: ERROR (duplicate_label): /fragment@70/__overlay__/camera-pins-cam0-mclk-8ma: Duplicate label 'camera_pins_cam0_mclk_8ma' on /fragment@70/__overlay__/camera-pins-cam0-mclk-8ma and /fragment@4/__overlay__/camera-pins-cam0-mclk-8ma /work/oppo_V45875948/0623_20/source/vnd/kernel-6.1/../kernel/kernel_device_modules-6.1/arch/arm64/boot/dts/mediatek/cust_mt6878_casioy_camera_v4l2.dtsi:81.33-87.4: ERROR (duplicate_label): /fragment@70/__overlay__/cam0@0: Duplicate label 'camera_pins_cam0_rst_0' on /fragment@70/__overlay__/cam0@0 and /fragment@4/__overlay__/cam0@0 /work/oppo_V45875948/0623_20/source/vnd/kernel-6.1/../kernel/kernel_device_modules-6.1/arch/arm64/boot/dts/mediatek/cust_mt6878_casioy_camera_v4l2.dtsi:88.33-94.4: ERROR (duplicate_label): /fragment@70/__overlay__/cam0@1: Duplicate label 'camera_pins_cam0_rst_1' on /fragment@70/__overlay__/cam0@1 and /fragment@4/__overlay__/cam0@1 /work/oppo_V45875948/0623_20/source/vnd/kernel-6.1/../kernel/kernel_device_modules-6.1/arch/arm64/boot/dts/mediatek/cust_mt6878_casioy_camera_v4l2.dtsi:109.55-114.4: ERROR (duplicate_label): /fragment@70/__overlay__/camera-pins-cam1-mclk-off: Duplicate label 'camera_pins_cam1_mclk_off' on /fragment@70/__overlay__/camera-pins-cam1-mclk-off and /fragment@4/__overlay__/camera-pins-cam1-mclk-off /work/oppo_V45875948/0623_20/source/vnd/kernel-6.1/../kernel/kernel_device_modules-6.1/arch/arm64/boot/dts/mediatek/cust_mt6878_casioy_camera_v4l2.dtsi:115.55-120.4: ERROR (duplicate_label): /fragment@70/__overlay__/camera-pins-cam1-mclk-2ma: Duplicate label 'camera_pins_cam1_mclk_2ma' on /fragment@70/__overlay__/camera-pins-cam1-mclk-2ma and /fragment@4/__overlay__/camera-pins-cam1-mclk-2ma /work/oppo_V45875948/0623_20/source/vnd/kernel-6.1/../kernel/kernel_device_modules-6.1/arch/arm64/boot/dts/mediatek/cust_mt6878_casioy_camera_v4l2.dtsi:121.55-126.4: ERROR (duplicate_label): /fragment@70/__overlay__/camera-pins-cam1-mclk-4ma: Duplicate label 'camera_pins_cam1_mclk_4ma' on /fragment@70/__overlay__/camera-pins-cam1-mclk-4ma and /fragment@4/__overlay__/camera-pins-cam1-mclk-4ma /work/oppo_V45875948/0623_20/source/vnd/kernel-6.1/../kernel/kernel_device_modules-6.1/arch/arm64/boot/dts/mediatek/cust_mt6878_casioy_camera_v4l2.dtsi:127.55-132.4: ERROR (duplicate_label): /fragment@70/__overlay__/camera-pins-cam1-mclk-6ma: Duplicate label 'camera_pins_cam1_mclk_6ma' on /fragment@70/__overlay__/camera-pins-cam1-mclk-6ma and /fragment@4/__overlay__/camera-pins-cam1-mclk-6ma /work/oppo_V45875948/0623_20/source/vnd/kernel-6.1/../kernel/kernel_device_modules-6.1/arch/arm64/boot/dts/mediatek/cust_mt6878_casioy_camera_v4l2.dtsi:133.55-138.4: ERROR (duplicate_label): /fragment@70/__overlay__/camera-pins-cam1-mclk-8ma: Duplicate label 'camera_pins_cam1_mclk_8ma' on /fragment@70/__overlay__/camera-pins-cam1-mclk-8ma and /fragment@4/__overlay__/camera-pins-cam1-mclk-8ma /work/oppo_V45875948/0623_20/source/vnd/kernel-6.1/../kernel/kernel_device_modules-6.1/arch/arm64/boot/dts/mediatek/cust_mt6878_casioy_camera_v4l2.dtsi:139.33-145.4: ERROR (duplicate_label): /fragment@70/__overlay__/cam1@0: Duplicate label 'camera_pins_cam1_rst_0' on /fragment@70/__overlay__/cam1@0 and /fragment@4/__overlay__/cam1@0 /work/oppo_V45875948/0623_20/source/vnd/kernel-6.1/../kernel/kernel_device_modules-6.1/arch/arm64/boot/dts/mediatek/cust_mt6878_casioy_camera_v4l2.dtsi:146.33-152.4: ERROR (duplicate_label): /fragment@70/__overlay__/cam1@1: Duplicate label 'camera_pins_cam1_rst_1' on /fragment@70/__overlay__/cam1@1 and /fragment@4/__overlay__/cam1@1 /work/oppo_V45875948/0623_20/source/vnd/kernel-6.1/../kernel/kernel_device_modules-6.1/arch/arm64/boot/dts/mediatek/cust_mt6878_casioy_camera_v4l2.dtsi:225.34-226.4: ERROR (duplicate_label): /fragment@70/__overlay__/camdefault: Duplicate label 'camera_pins_default' on /fragment@70/__overlay__/camdefault and /fragment@4/__overlay__/camdefault /work/oppo_V45875948/0623_20/source/vnd/kernel-6.1/../kernel/kernel_device_modules-6.1/arch/arm64/boot/dts/mediatek/cust_mt6878_casioy_camera_v4l2.dtsi:252.30-254.5: ERROR (duplicate_label): /fragment@72/__overlay__/port@0/endpoint: Duplicate label 'main_af_endpoint' on /fragment@72/__overlay__/port@0/endpoint and /fragment@5/__overlay__/port@0/endpoint /work/oppo_V45875948/0623_20/source/vnd/kernel-6.1/../kernel/kernel_device_modules-6.1/arch/arm64/boot/dts/mediatek/cust_mt6878_casioy_camera_v4l2.dtsi:268.22-317.4: ERROR (duplicate_label): /fragment@73/__overlay__/sensor1@10: Duplicate label 'sensor1' on /fragment@73/__overlay__/sensor1@10 and /fragment@7/__overlay__/sensor1@6c /work/oppo_V45875948/0623_20/source/vnd/kernel-6.1/../kernel/kernel_device_modules-6.1/arch/arm64/boot/dts/mediatek/cust_mt6878_casioy_camera_v4l2.dtsi:313.26-315.6: ERROR (duplicate_label): /fragment@73/__overlay__/sensor1@10/port/endpoint: Duplicate label 'sensor1_out' on /fragment@73/__overlay__/sensor1@10/port/endpoint and /fragment@7/__overlay__/sensor1@6c/port/endpoint /work/oppo_V45875948/0623_20/source/vnd/kernel-6.1/../kernel/kernel_device_modules-6.1/arch/arm64/boot/dts/mediatek/cust_mt6878_casioy_camera_v4l2.dtsi:318.42-322.4: ERROR (duplicate_label): /fragment@73/__overlay__/camera-eeprom1@54: Duplicate label 'mtk_camera_eeprom1' on /fragment@73/__overlay__/camera-eeprom1@54 and /fragment@6/__overlay__/camera-eeprom1@54 /work/oppo_V45875948/0623_20/source/vnd/kernel-6.1/../kernel/kernel_device_modules-6.1/arch/arm64/boot/dts/mediatek/cust_mt6878_casioy_camera_v4l2.dtsi:391.22-393.6: ERROR (duplicate_label): /fragment@74/__overlay__/camera_af_main@0c/port/endpoint: Duplicate label 'main_af' on /fragment@74/__overlay__/camera_af_main@0c/port/endpoint and /fragment@6/__overlay__/camera_af_main@0c/port/endpoint /work/oppo_V45875948/0623_20/source/vnd/kernel-6.1/../kernel/kernel_device_modules-6.1/arch/arm64/boot/dts/mediatek/cust_mt6878_casioy_camera_v4l2.dtsi:406.22-455.4: ERROR (duplicate_label): /fragment@74/__overlay__/sensor0@1a: Duplicate label 'sensor0' on /fragment@74/__overlay__/sensor0@1a and /fragment@6/__overlay__/sensor0@20 /work/oppo_V45875948/0623_20/source/vnd/kernel-6.1/../kernel/kernel_device_modules-6.1/arch/arm64/boot/dts/mediatek/cust_mt6878_casioy_camera_v4l2.dtsi:451.26-453.6: ERROR (duplicate_label): /fragment@74/__overlay__/sensor0@1a/port/endpoint: Duplicate label 'sensor0_out' on /fragment@74/__overlay__/sensor0@1a/port/endpoint and /fragment@6/__overlay__/sensor0@20/port/endpoint /work/oppo_V45875948/0623_20/source/vnd/kernel-6.1/../kernel/kernel_device_modules-6.1/arch/arm64/boot/dts/mediatek/cust_mt6878_casioy_camera_v4l2.dtsi:457.39-461.4: ERROR (duplicate_label): /fragment@74/__overlay__/camera-eeprom0@50: Duplicate label 'mtk_camera_eeprom0' on /fragment@74/__overlay__/camera-eeprom0@50 and /fragment@7/__overlay__/camera-eeprom0@50 /work/oppo_V45875948/0623_20/source/vnd/kernel-6.1/../kernel/kernel_device_modules-6.1/arch/arm64/boot/dts/mediatek/cust_mt6878_casioy_camera_v4l2.dtsi:485.25-487.7: ERROR (duplicate_label): /fragment@75/__overlay__/aw36515_2led@63/flash@0/port/endpoint: Duplicate label 'fl_core_0' on /fragment@75/__overlay__/aw36515_2led@63/flash@0/port/endpoint and /fragment@8/__overlay__/aw36410@63/flash@0/port/endpoint /work/oppo_V45875948/0623_20/source/vnd/kernel-6.1/../kernel/kernel_device_modules-6.1/arch/arm64/boot/dts/mediatek/cust_mt6878_casioy_camera_v4l2.dtsi:530.26-532.5: ERROR (duplicate_label): /fragment@77/__overlay__/port@0/endpoint: Duplicate label 'flashlight_0' on /fragment@77/__overlay__/port@0/endpoint and /fragment@10/__overlay__/port@0/endpoint ERROR: Input tree has errors, aborting (use -f to force output) make[3]: *** [/work/oppo_V45875948/0623_20/source/vnd/kernel-6.1/scripts/Makefile.lib:422: ../kernel/kernel_device_modules-6.1/arch/arm64/boot/dts/mediatek/oplus6878_25683.dtb] Error 2 make[2]: *** [/work/oppo_V45875948/0623_20/source/vnd/kernel-6.1/Makefile:1524: oplus6878_25683.dtb] Error 2
最新发布
06-26
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值