1b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0 2f0570d91SFrank Rowandobj-y += testcases.dtb.o 3f0570d91SFrank Rowand 4bd6dc70bSMasahiro Yamadaobj-$(CONFIG_OF_OVERLAY) += overlay.dtb.o \ 539a751a4SFrank Rowand overlay_0.dtb.o \ 639a751a4SFrank Rowand overlay_1.dtb.o \ 739a751a4SFrank Rowand overlay_2.dtb.o \ 839a751a4SFrank Rowand overlay_3.dtb.o \ 939a751a4SFrank Rowand overlay_4.dtb.o \ 1039a751a4SFrank Rowand overlay_5.dtb.o \ 1139a751a4SFrank Rowand overlay_6.dtb.o \ 1239a751a4SFrank Rowand overlay_7.dtb.o \ 1339a751a4SFrank Rowand overlay_8.dtb.o \ 1439a751a4SFrank Rowand overlay_9.dtb.o \ 1539a751a4SFrank Rowand overlay_10.dtb.o \ 1639a751a4SFrank Rowand overlay_11.dtb.o \ 1739a751a4SFrank Rowand overlay_12.dtb.o \ 1839a751a4SFrank Rowand overlay_13.dtb.o \ 1939a751a4SFrank Rowand overlay_15.dtb.o \ 20*992b0dc5SFrank Rowand overlay_16.dtb.o \ 21*992b0dc5SFrank Rowand overlay_17.dtb.o \ 22*992b0dc5SFrank Rowand overlay_18.dtb.o \ 23*992b0dc5SFrank Rowand overlay_19.dtb.o \ 24*992b0dc5SFrank Rowand overlay_20.dtb.o \ 25a68238a1SFrank Rowand overlay_bad_add_dup_node.dtb.o \ 262fe0e876SFrank Rowand overlay_bad_add_dup_prop.dtb.o \ 27bd6dc70bSMasahiro Yamada overlay_bad_phandle.dtb.o \ 28bd6dc70bSMasahiro Yamada overlay_bad_symbol.dtb.o \ 29f4056e70SFrank Rowand overlay_base.dtb.o \ 30f4056e70SFrank Rowand overlay_gpio_01.dtb.o \ 31f4056e70SFrank Rowand overlay_gpio_02a.dtb.o \ 32f4056e70SFrank Rowand overlay_gpio_02b.dtb.o \ 33f4056e70SFrank Rowand overlay_gpio_03.dtb.o \ 34f4056e70SFrank Rowand overlay_gpio_04a.dtb.o \ 35f4056e70SFrank Rowand overlay_gpio_04b.dtb.o 3660a0004cSFrank Rowand 3781d0848fSFrank Rowand# enable creation of __symbols__ node 3839a751a4SFrank RowandDTC_FLAGS_overlay += -@ 3939a751a4SFrank RowandDTC_FLAGS_overlay_bad_phandle += -@ 4039a751a4SFrank RowandDTC_FLAGS_overlay_bad_symbol += -@ 4139a751a4SFrank RowandDTC_FLAGS_overlay_base += -@ 4239a751a4SFrank RowandDTC_FLAGS_testcases += -@ 4339a751a4SFrank Rowand 4439a751a4SFrank Rowand# suppress warnings about intentional errors 45b68d0924SRob HerringDTC_FLAGS_testcases += -Wno-interrupts_property \ 46b68d0924SRob Herring -Wno-node_name_vs_property_name \ 47b68d0924SRob Herring -Wno-interrupt_map 483b2dccc6SViresh Kumar 493b2dccc6SViresh Kumar# Apply overlays statically with fdtoverlay. This is a build time test that 503b2dccc6SViresh Kumar# the overlays can be applied successfully by fdtoverlay. This does not 513b2dccc6SViresh Kumar# guarantee that the overlays can be applied successfully at run time by 523b2dccc6SViresh Kumar# unittest, but it provides a bit of build time test coverage for those 533b2dccc6SViresh Kumar# who do not execute unittest. 543b2dccc6SViresh Kumar# 553b2dccc6SViresh Kumar# The overlays are applied on top of static_base_1.dtb and static_base_2.dtb to 563b2dccc6SViresh Kumar# create static_test_1.dtb and static_test_2.dtb. If fdtoverlay detects an 573b2dccc6SViresh Kumar# error than the kernel build will fail. static_test_1.dtb and 583b2dccc6SViresh Kumar# static_test_2.dtb are not consumed by unittest. 593b2dccc6SViresh Kumar# 603b2dccc6SViresh Kumar# Some unittest overlays deliberately contain errors that unittest checks for. 613b2dccc6SViresh Kumar# These overlays will cause fdtoverlay to fail, and are thus not included 623b2dccc6SViresh Kumar# in the static test: 633b2dccc6SViresh Kumar# overlay_bad_add_dup_node.dtbo \ 643b2dccc6SViresh Kumar# overlay_bad_add_dup_prop.dtbo \ 653b2dccc6SViresh Kumar# overlay_bad_phandle.dtbo \ 663b2dccc6SViresh Kumar# overlay_bad_symbol.dtbo \ 673b2dccc6SViresh Kumar 683b2dccc6SViresh Kumarapply_static_overlay_1 := overlay_0.dtbo \ 693b2dccc6SViresh Kumar overlay_1.dtbo \ 703b2dccc6SViresh Kumar overlay_2.dtbo \ 713b2dccc6SViresh Kumar overlay_3.dtbo \ 723b2dccc6SViresh Kumar overlay_4.dtbo \ 733b2dccc6SViresh Kumar overlay_5.dtbo \ 743b2dccc6SViresh Kumar overlay_6.dtbo \ 753b2dccc6SViresh Kumar overlay_7.dtbo \ 763b2dccc6SViresh Kumar overlay_8.dtbo \ 773b2dccc6SViresh Kumar overlay_9.dtbo \ 783b2dccc6SViresh Kumar overlay_10.dtbo \ 793b2dccc6SViresh Kumar overlay_11.dtbo \ 803b2dccc6SViresh Kumar overlay_12.dtbo \ 813b2dccc6SViresh Kumar overlay_13.dtbo \ 823b2dccc6SViresh Kumar overlay_15.dtbo \ 83*992b0dc5SFrank Rowand overlay_16.dtbo \ 84*992b0dc5SFrank Rowand overlay_17.dtbo \ 85*992b0dc5SFrank Rowand overlay_18.dtbo \ 86*992b0dc5SFrank Rowand overlay_19.dtbo \ 87*992b0dc5SFrank Rowand overlay_20.dtbo \ 883b2dccc6SViresh Kumar overlay_gpio_01.dtbo \ 893b2dccc6SViresh Kumar overlay_gpio_02a.dtbo \ 903b2dccc6SViresh Kumar overlay_gpio_02b.dtbo \ 913b2dccc6SViresh Kumar overlay_gpio_03.dtbo \ 923b2dccc6SViresh Kumar overlay_gpio_04a.dtbo \ 933b2dccc6SViresh Kumar overlay_gpio_04b.dtbo 943b2dccc6SViresh Kumar 953b2dccc6SViresh Kumarapply_static_overlay_2 := overlay.dtbo 963b2dccc6SViresh Kumar 97b68d0924SRob HerringDTC_FLAGS_static_base_1 += -Wno-interrupts_property \ 98b68d0924SRob Herring -Wno-node_name_vs_property_name \ 99b68d0924SRob Herring -Wno-interrupt_map 100b68d0924SRob Herring 1013b2dccc6SViresh Kumarstatic_test_1-dtbs := static_base_1.dtb $(apply_static_overlay_1) 1023b2dccc6SViresh Kumarstatic_test_2-dtbs := static_base_2.dtb $(apply_static_overlay_2) 1033b2dccc6SViresh Kumar 1043b2dccc6SViresh Kumardtb-$(CONFIG_OF_OVERLAY) += static_test_1.dtb static_test_2.dtb 105