1b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0 2e87cacadSFrank Rowandobj-y += testcases.dtbo.o 3f0570d91SFrank Rowand 4e87cacadSFrank Rowandobj-$(CONFIG_OF_OVERLAY) += overlay.dtbo.o \ 5e87cacadSFrank Rowand overlay_0.dtbo.o \ 6e87cacadSFrank Rowand overlay_1.dtbo.o \ 7e87cacadSFrank Rowand overlay_2.dtbo.o \ 8e87cacadSFrank Rowand overlay_3.dtbo.o \ 9e87cacadSFrank Rowand overlay_4.dtbo.o \ 10e87cacadSFrank Rowand overlay_5.dtbo.o \ 11e87cacadSFrank Rowand overlay_6.dtbo.o \ 12e87cacadSFrank Rowand overlay_7.dtbo.o \ 13e87cacadSFrank Rowand overlay_8.dtbo.o \ 14e87cacadSFrank Rowand overlay_9.dtbo.o \ 15e87cacadSFrank Rowand overlay_10.dtbo.o \ 16e87cacadSFrank Rowand overlay_11.dtbo.o \ 17e87cacadSFrank Rowand overlay_12.dtbo.o \ 18e87cacadSFrank Rowand overlay_13.dtbo.o \ 19e87cacadSFrank Rowand overlay_15.dtbo.o \ 20e87cacadSFrank Rowand overlay_16.dtbo.o \ 21e87cacadSFrank Rowand overlay_17.dtbo.o \ 22e87cacadSFrank Rowand overlay_18.dtbo.o \ 23e87cacadSFrank Rowand overlay_19.dtbo.o \ 24e87cacadSFrank Rowand overlay_20.dtbo.o \ 25e87cacadSFrank Rowand overlay_bad_add_dup_node.dtbo.o \ 26e87cacadSFrank Rowand overlay_bad_add_dup_prop.dtbo.o \ 27e87cacadSFrank Rowand overlay_bad_phandle.dtbo.o \ 28e87cacadSFrank Rowand overlay_bad_symbol.dtbo.o \ 29e87cacadSFrank Rowand overlay_base.dtbo.o \ 30e87cacadSFrank Rowand overlay_gpio_01.dtbo.o \ 31e87cacadSFrank Rowand overlay_gpio_02a.dtbo.o \ 32e87cacadSFrank Rowand overlay_gpio_02b.dtbo.o \ 33e87cacadSFrank Rowand overlay_gpio_03.dtbo.o \ 34e87cacadSFrank Rowand overlay_gpio_04a.dtbo.o \ 3526409dd0SLizhi Hou overlay_gpio_04b.dtbo.o \ 36*eb38b952SGeert Uytterhoeven overlay_pci_node.dtbo.o \ 37*eb38b952SGeert Uytterhoeven overlay_bad_unresolved.dtbo.o 3860a0004cSFrank Rowand 3981d0848fSFrank Rowand# enable creation of __symbols__ node 4039a751a4SFrank RowandDTC_FLAGS_overlay += -@ 4139a751a4SFrank RowandDTC_FLAGS_overlay_bad_phandle += -@ 4239a751a4SFrank RowandDTC_FLAGS_overlay_bad_symbol += -@ 4339a751a4SFrank RowandDTC_FLAGS_overlay_base += -@ 4439a751a4SFrank RowandDTC_FLAGS_testcases += -@ 4539a751a4SFrank Rowand 4639a751a4SFrank Rowand# suppress warnings about intentional errors 47b68d0924SRob HerringDTC_FLAGS_testcases += -Wno-interrupts_property \ 48b68d0924SRob Herring -Wno-node_name_vs_property_name \ 49b68d0924SRob Herring -Wno-interrupt_map 503b2dccc6SViresh Kumar 513b2dccc6SViresh Kumar# Apply overlays statically with fdtoverlay. This is a build time test that 523b2dccc6SViresh Kumar# the overlays can be applied successfully by fdtoverlay. This does not 533b2dccc6SViresh Kumar# guarantee that the overlays can be applied successfully at run time by 543b2dccc6SViresh Kumar# unittest, but it provides a bit of build time test coverage for those 553b2dccc6SViresh Kumar# who do not execute unittest. 563b2dccc6SViresh Kumar# 573b2dccc6SViresh Kumar# The overlays are applied on top of static_base_1.dtb and static_base_2.dtb to 583b2dccc6SViresh Kumar# create static_test_1.dtb and static_test_2.dtb. If fdtoverlay detects an 593b2dccc6SViresh Kumar# error than the kernel build will fail. static_test_1.dtb and 603b2dccc6SViresh Kumar# static_test_2.dtb are not consumed by unittest. 613b2dccc6SViresh Kumar# 623b2dccc6SViresh Kumar# Some unittest overlays deliberately contain errors that unittest checks for. 633b2dccc6SViresh Kumar# These overlays will cause fdtoverlay to fail, and are thus not included 643b2dccc6SViresh Kumar# in the static test: 653b2dccc6SViresh Kumar# overlay_bad_add_dup_node.dtbo \ 663b2dccc6SViresh Kumar# overlay_bad_add_dup_prop.dtbo \ 673b2dccc6SViresh Kumar# overlay_bad_phandle.dtbo \ 683b2dccc6SViresh Kumar# overlay_bad_symbol.dtbo \ 693b2dccc6SViresh Kumar 703b2dccc6SViresh Kumarapply_static_overlay_1 := overlay_0.dtbo \ 713b2dccc6SViresh Kumar overlay_1.dtbo \ 723b2dccc6SViresh Kumar overlay_2.dtbo \ 733b2dccc6SViresh Kumar overlay_3.dtbo \ 743b2dccc6SViresh Kumar overlay_4.dtbo \ 753b2dccc6SViresh Kumar overlay_5.dtbo \ 763b2dccc6SViresh Kumar overlay_6.dtbo \ 773b2dccc6SViresh Kumar overlay_7.dtbo \ 783b2dccc6SViresh Kumar overlay_8.dtbo \ 793b2dccc6SViresh Kumar overlay_9.dtbo \ 803b2dccc6SViresh Kumar overlay_10.dtbo \ 813b2dccc6SViresh Kumar overlay_11.dtbo \ 823b2dccc6SViresh Kumar overlay_12.dtbo \ 833b2dccc6SViresh Kumar overlay_13.dtbo \ 843b2dccc6SViresh Kumar overlay_15.dtbo \ 85992b0dc5SFrank Rowand overlay_16.dtbo \ 86992b0dc5SFrank Rowand overlay_17.dtbo \ 87992b0dc5SFrank Rowand overlay_18.dtbo \ 88992b0dc5SFrank Rowand overlay_19.dtbo \ 89992b0dc5SFrank Rowand overlay_20.dtbo \ 903b2dccc6SViresh Kumar overlay_gpio_01.dtbo \ 913b2dccc6SViresh Kumar overlay_gpio_02a.dtbo \ 923b2dccc6SViresh Kumar overlay_gpio_02b.dtbo \ 933b2dccc6SViresh Kumar overlay_gpio_03.dtbo \ 943b2dccc6SViresh Kumar overlay_gpio_04a.dtbo \ 953b2dccc6SViresh Kumar overlay_gpio_04b.dtbo 963b2dccc6SViresh Kumar 973b2dccc6SViresh Kumarapply_static_overlay_2 := overlay.dtbo 983b2dccc6SViresh Kumar 99b68d0924SRob HerringDTC_FLAGS_static_base_1 += -Wno-interrupts_property \ 100b68d0924SRob Herring -Wno-node_name_vs_property_name \ 101b68d0924SRob Herring -Wno-interrupt_map 102b68d0924SRob Herring 1033b2dccc6SViresh Kumarstatic_test_1-dtbs := static_base_1.dtb $(apply_static_overlay_1) 1043b2dccc6SViresh Kumarstatic_test_2-dtbs := static_base_2.dtb $(apply_static_overlay_2) 1053b2dccc6SViresh Kumar 1063b2dccc6SViresh Kumardtb-$(CONFIG_OF_OVERLAY) += static_test_1.dtb static_test_2.dtb 107