ae9304c9d3
This patch attaches selftest's device tree data (required by /drivers/of/selftest.c) dynamically into live device tree. First, it links selftest device tree data into the kernel image and then iterates over all the nodes and attaches them into the live tree. Once the testcases are complete, it removes the data attached. This patch will remove the manual process of addition and removal of selftest device tree data into the machine's dts file. Tested successfully with current selftest's testcases. Signed-off-by: Gaurav Minocha <gaurav.minocha.os@gmail.com> [glikely: Removed ability to build as a module and fixed no-devicetree bug] Signed-off-by: Grant Likely <grant.likely@linaro.org>
18 lines
664 B
Makefile
18 lines
664 B
Makefile
obj-y = base.o device.o platform.o
|
|
obj-$(CONFIG_OF_FLATTREE) += fdt.o
|
|
obj-$(CONFIG_OF_EARLY_FLATTREE) += fdt_address.o
|
|
obj-$(CONFIG_OF_PROMTREE) += pdt.o
|
|
obj-$(CONFIG_OF_ADDRESS) += address.o
|
|
obj-$(CONFIG_OF_IRQ) += irq.o
|
|
obj-$(CONFIG_OF_NET) += of_net.o
|
|
obj-$(CONFIG_OF_SELFTEST) += of_selftest.o
|
|
of_selftest-objs := selftest.o testcase-data/testcases.dtb.o
|
|
obj-$(CONFIG_OF_MDIO) += of_mdio.o
|
|
obj-$(CONFIG_OF_PCI) += of_pci.o
|
|
obj-$(CONFIG_OF_PCI_IRQ) += of_pci_irq.o
|
|
obj-$(CONFIG_OF_MTD) += of_mtd.o
|
|
obj-$(CONFIG_OF_RESERVED_MEM) += of_reserved_mem.o
|
|
|
|
CFLAGS_fdt.o = -I$(src)/../../scripts/dtc/libfdt
|
|
CFLAGS_fdt_address.o = -I$(src)/../../scripts/dtc/libfdt
|