diff options
Diffstat (limited to 'drivers/of')
-rw-r--r-- | drivers/of/Makefile | 5 | ||||
-rw-r--r-- | drivers/of/unittest-data/.gitignore | 2 | ||||
-rw-r--r-- | drivers/of/unittest-data/Makefile | 7 |
3 files changed, 12 insertions, 2 deletions
diff --git a/drivers/of/Makefile b/drivers/of/Makefile index 7563f36c71db..fcacb186a67b 100644 --- a/drivers/of/Makefile +++ b/drivers/of/Makefile | |||
@@ -6,8 +6,7 @@ obj-$(CONFIG_OF_PROMTREE) += pdt.o | |||
6 | obj-$(CONFIG_OF_ADDRESS) += address.o | 6 | obj-$(CONFIG_OF_ADDRESS) += address.o |
7 | obj-$(CONFIG_OF_IRQ) += irq.o | 7 | obj-$(CONFIG_OF_IRQ) += irq.o |
8 | obj-$(CONFIG_OF_NET) += of_net.o | 8 | obj-$(CONFIG_OF_NET) += of_net.o |
9 | obj-$(CONFIG_OF_UNITTEST) += of_unittest.o | 9 | obj-$(CONFIG_OF_UNITTEST) += unittest.o |
10 | of_unittest-objs := unittest.o unittest-data/testcases.dtb.o | ||
11 | obj-$(CONFIG_OF_MDIO) += of_mdio.o | 10 | obj-$(CONFIG_OF_MDIO) += of_mdio.o |
12 | obj-$(CONFIG_OF_PCI) += of_pci.o | 11 | obj-$(CONFIG_OF_PCI) += of_pci.o |
13 | obj-$(CONFIG_OF_PCI_IRQ) += of_pci_irq.o | 12 | obj-$(CONFIG_OF_PCI_IRQ) += of_pci_irq.o |
@@ -16,5 +15,7 @@ obj-$(CONFIG_OF_RESERVED_MEM) += of_reserved_mem.o | |||
16 | obj-$(CONFIG_OF_RESOLVE) += resolver.o | 15 | obj-$(CONFIG_OF_RESOLVE) += resolver.o |
17 | obj-$(CONFIG_OF_OVERLAY) += overlay.o | 16 | obj-$(CONFIG_OF_OVERLAY) += overlay.o |
18 | 17 | ||
18 | obj-$(CONFIG_OF_UNITTEST) += unittest-data/ | ||
19 | |||
19 | CFLAGS_fdt.o = -I$(src)/../../scripts/dtc/libfdt | 20 | CFLAGS_fdt.o = -I$(src)/../../scripts/dtc/libfdt |
20 | CFLAGS_fdt_address.o = -I$(src)/../../scripts/dtc/libfdt | 21 | CFLAGS_fdt_address.o = -I$(src)/../../scripts/dtc/libfdt |
diff --git a/drivers/of/unittest-data/.gitignore b/drivers/of/unittest-data/.gitignore new file mode 100644 index 000000000000..4b3cf8b16de2 --- /dev/null +++ b/drivers/of/unittest-data/.gitignore | |||
@@ -0,0 +1,2 @@ | |||
1 | testcases.dtb | ||
2 | testcases.dtb.S | ||
diff --git a/drivers/of/unittest-data/Makefile b/drivers/of/unittest-data/Makefile new file mode 100644 index 000000000000..1ac5cc01d627 --- /dev/null +++ b/drivers/of/unittest-data/Makefile | |||
@@ -0,0 +1,7 @@ | |||
1 | obj-y += testcases.dtb.o | ||
2 | |||
3 | targets += testcases.dtb testcases.dtb.S | ||
4 | |||
5 | .SECONDARY: \ | ||
6 | $(obj)/testcases.dtb.S \ | ||
7 | $(obj)/testcases.dtb | ||