diff options
author | Nathan Rossi <nathan@nathanrossi.com> | 2017-04-15 19:29:37 +1000 |
---|---|---|
committer | Nathan Rossi <nathan@nathanrossi.com> | 2017-04-26 15:33:30 +1000 |
commit | e448d3c1de3ce284ef42a591fd89cf4c2b6a81cf (patch) | |
tree | f4636fe64ed694d6033f2b33a29807467c30915c | |
parent | ae22febf817ba9bee60014756e0d87f635f7e25f (diff) | |
download | meta-xilinx-e448d3c1de3ce284ef42a591fd89cf4c2b6a81cf.tar.gz |
device-tree.bbappend: Move use of MACHINE_DEVICETREE to SRC_URI
Remove the use of MACHINE_DEVICETREE for providing sources to
device-tree, instead provide the device tree sources as SRC_URI entires.
Whilst this was already being done automatically by the
MACHINE_DEVICETREE logic it also created a non-standard way of providing
the device tree sources to the recipe.
The setup of SRC_URI is done via the use of a device-tree.bbappend
instead of directly in the device-tree.bb recipe itself. This is for two
reason, separation of the source from the build logic as well as to
provide an example for how a user can extend the device-tree recipe to
provide custom device tree sources in their layer.
This change also moves the paths to the sources around, this is to align
the names of the directories to match the OVERRIDES so that when
expanding the file paths it will search the subdirs based on the
OVERRIDES or machine names.
Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
-rw-r--r-- | conf/machine/kc705-microblazeel.conf | 4 | ||||
-rw-r--r-- | conf/machine/microzed-zynq7.conf | 1 | ||||
-rw-r--r-- | conf/machine/picozed-zynq7.conf | 1 | ||||
-rw-r--r-- | conf/machine/qemu-zynq7.conf | 1 | ||||
-rw-r--r-- | conf/machine/zybo-linux-bd-zynq7.conf | 6 | ||||
-rw-r--r-- | recipes-bsp/device-tree/device-tree.bbappend | 21 | ||||
-rw-r--r-- | recipes-bsp/device-tree/files/kc705-microblazeel/kc705-microblazeel.dts (renamed from recipes-bsp/device-tree/files/kc705/kc705-microblazeel.dts) | 0 | ||||
-rw-r--r-- | recipes-bsp/device-tree/files/kc705-microblazeel/pl.dtsi (renamed from recipes-bsp/device-tree/files/kc705/pl.dtsi) | 0 | ||||
-rw-r--r-- | recipes-bsp/device-tree/files/kc705-microblazeel/system-conf.dtsi (renamed from recipes-bsp/device-tree/files/kc705/system-conf.dtsi) | 0 | ||||
-rw-r--r-- | recipes-bsp/device-tree/files/microzed-zynq7.dts (renamed from recipes-bsp/device-tree/files/microzed/microzed-zynq7.dts) | 0 | ||||
-rw-r--r-- | recipes-bsp/device-tree/files/picozed-zynq7.dts (renamed from recipes-bsp/device-tree/files/picozed/picozed-zynq7.dts) | 0 | ||||
-rw-r--r-- | recipes-bsp/device-tree/files/qemu-zynq7.dts (renamed from recipes-bsp/device-tree/files/qemu/qemu-zynq7.dts) | 0 | ||||
-rw-r--r-- | recipes-bsp/device-tree/files/zybo-linux-bd-zynq7/pcw.dtsi (renamed from recipes-bsp/device-tree/files/zybo-linux-bd/pcw.dtsi) | 0 | ||||
-rw-r--r-- | recipes-bsp/device-tree/files/zybo-linux-bd-zynq7/pl.dtsi (renamed from recipes-bsp/device-tree/files/zybo-linux-bd/pl.dtsi) | 0 | ||||
-rw-r--r-- | recipes-bsp/device-tree/files/zybo-linux-bd-zynq7/zybo-linux-bd-zynq7.dts (renamed from recipes-bsp/device-tree/files/zybo-linux-bd/zybo-linux-bd-zynq7.dts) | 0 | ||||
-rw-r--r-- | recipes-bsp/device-tree/files/zynq-7000-qspi-dummy.dtsi (renamed from recipes-bsp/device-tree/files/common/zynq-7000-qspi-dummy.dtsi) | 0 |
16 files changed, 21 insertions, 13 deletions
diff --git a/conf/machine/kc705-microblazeel.conf b/conf/machine/kc705-microblazeel.conf index cea1d173..efd83b78 100644 --- a/conf/machine/kc705-microblazeel.conf +++ b/conf/machine/kc705-microblazeel.conf | |||
@@ -15,10 +15,6 @@ USE_VT = "" | |||
15 | SERIAL_CONSOLE = "115200 ttyS0" | 15 | SERIAL_CONSOLE = "115200 ttyS0" |
16 | 16 | ||
17 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "device-tree" | 17 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "device-tree" |
18 | MACHINE_DEVICETREE := " \ | ||
19 | kc705/kc705-microblazeel.dts \ | ||
20 | kc705/pl.dtsi \ | ||
21 | kc705/system-conf.dtsi" | ||
22 | 18 | ||
23 | EXTRA_IMAGEDEPENDS += "virtual/bitstream" | 19 | EXTRA_IMAGEDEPENDS += "virtual/bitstream" |
24 | 20 | ||
diff --git a/conf/machine/microzed-zynq7.conf b/conf/machine/microzed-zynq7.conf index 9a00e61d..8e24d5f5 100644 --- a/conf/machine/microzed-zynq7.conf +++ b/conf/machine/microzed-zynq7.conf | |||
@@ -15,7 +15,6 @@ SPL_BINARY = "spl/boot.bin" | |||
15 | SERIAL_CONSOLE = "115200 ttyPS0" | 15 | SERIAL_CONSOLE = "115200 ttyPS0" |
16 | 16 | ||
17 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "device-tree" | 17 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "device-tree" |
18 | MACHINE_DEVICETREE = "microzed/microzed-zynq7.dts" | ||
19 | 18 | ||
20 | IMAGE_BOOT_FILES += "boot.bin ${MACHINE}.dtb" | 19 | IMAGE_BOOT_FILES += "boot.bin ${MACHINE}.dtb" |
21 | 20 | ||
diff --git a/conf/machine/picozed-zynq7.conf b/conf/machine/picozed-zynq7.conf index 12b0fde2..e1d723c4 100644 --- a/conf/machine/picozed-zynq7.conf +++ b/conf/machine/picozed-zynq7.conf | |||
@@ -19,7 +19,6 @@ SPL_BINARY = "spl/boot.bin" | |||
19 | SERIAL_CONSOLE = "115200 ttyPS0" | 19 | SERIAL_CONSOLE = "115200 ttyPS0" |
20 | 20 | ||
21 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "device-tree" | 21 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "device-tree" |
22 | MACHINE_DEVICETREE = "picozed/picozed-zynq7.dts" | ||
23 | 22 | ||
24 | IMAGE_BOOT_FILES += "boot.bin ${MACHINE}.dtb" | 23 | IMAGE_BOOT_FILES += "boot.bin ${MACHINE}.dtb" |
25 | 24 | ||
diff --git a/conf/machine/qemu-zynq7.conf b/conf/machine/qemu-zynq7.conf index e3cd575a..6d55f09d 100644 --- a/conf/machine/qemu-zynq7.conf +++ b/conf/machine/qemu-zynq7.conf | |||
@@ -11,7 +11,6 @@ MACHINE_FEATURES = "ext2 vfat" | |||
11 | SERIAL_CONSOLE = "115200 ttyPS0" | 11 | SERIAL_CONSOLE = "115200 ttyPS0" |
12 | 12 | ||
13 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "device-tree" | 13 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "device-tree" |
14 | MACHINE_DEVICETREE = "qemu/qemu-zynq7.dts" | ||
15 | 14 | ||
16 | # Use the networking setup from qemuarm | 15 | # Use the networking setup from qemuarm |
17 | FILESOVERRIDES_append_pn-init-ifupdown = ":qemuarm" | 16 | FILESOVERRIDES_append_pn-init-ifupdown = ":qemuarm" |
diff --git a/conf/machine/zybo-linux-bd-zynq7.conf b/conf/machine/zybo-linux-bd-zynq7.conf index f5524c12..a5c572f6 100644 --- a/conf/machine/zybo-linux-bd-zynq7.conf +++ b/conf/machine/zybo-linux-bd-zynq7.conf | |||
@@ -17,12 +17,6 @@ SERIAL_CONSOLE = "115200 ttyPS0" | |||
17 | 17 | ||
18 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "device-tree" | 18 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "device-tree" |
19 | 19 | ||
20 | MACHINE_DEVICETREE = " \ | ||
21 | zybo-linux-bd/pcw.dtsi \ | ||
22 | zybo-linux-bd/pl.dtsi \ | ||
23 | zybo-linux-bd/zybo-linux-bd-zynq7.dts \ | ||
24 | " | ||
25 | |||
26 | UBOOT_MACHINE = "zynq_zybo_config" | 20 | UBOOT_MACHINE = "zynq_zybo_config" |
27 | SPL_BINARY = "spl/boot.bin" | 21 | SPL_BINARY = "spl/boot.bin" |
28 | FORCE_PS7INIT = "zybo" | 22 | FORCE_PS7INIT = "zybo" |
diff --git a/recipes-bsp/device-tree/device-tree.bbappend b/recipes-bsp/device-tree/device-tree.bbappend new file mode 100644 index 00000000..4f46e358 --- /dev/null +++ b/recipes-bsp/device-tree/device-tree.bbappend | |||
@@ -0,0 +1,21 @@ | |||
1 | |||
2 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" | ||
3 | |||
4 | # common zynq include | ||
5 | SRC_URI_append_zynq = " file://zynq-7000-qspi-dummy.dtsi" | ||
6 | |||
7 | # device tree sources for the various machines | ||
8 | SRC_URI_append_picozed-zynq7 = " file://picozed-zynq7.dts" | ||
9 | SRC_URI_append_microzed-zynq7 = " file://microzed-zynq7.dts" | ||
10 | SRC_URI_append_qemu-zynq7 = " file://qemu-zynq7.dts" | ||
11 | SRC_URI_append_zybo-linux-bd-zynq7 = " \ | ||
12 | file://zybo-linux-bd-zynq7.dts \ | ||
13 | file://pcw.dtsi \ | ||
14 | file://pl.dtsi \ | ||
15 | " | ||
16 | SRC_URI_append_kc705-microblazeel = " \ | ||
17 | file://kc705-microblazeel.dts \ | ||
18 | file://pl.dtsi \ | ||
19 | file://system-conf.dtsi \ | ||
20 | " | ||
21 | |||
diff --git a/recipes-bsp/device-tree/files/kc705/kc705-microblazeel.dts b/recipes-bsp/device-tree/files/kc705-microblazeel/kc705-microblazeel.dts index af60db87..af60db87 100644 --- a/recipes-bsp/device-tree/files/kc705/kc705-microblazeel.dts +++ b/recipes-bsp/device-tree/files/kc705-microblazeel/kc705-microblazeel.dts | |||
diff --git a/recipes-bsp/device-tree/files/kc705/pl.dtsi b/recipes-bsp/device-tree/files/kc705-microblazeel/pl.dtsi index 8f064671..8f064671 100644 --- a/recipes-bsp/device-tree/files/kc705/pl.dtsi +++ b/recipes-bsp/device-tree/files/kc705-microblazeel/pl.dtsi | |||
diff --git a/recipes-bsp/device-tree/files/kc705/system-conf.dtsi b/recipes-bsp/device-tree/files/kc705-microblazeel/system-conf.dtsi index 2a824aec..2a824aec 100644 --- a/recipes-bsp/device-tree/files/kc705/system-conf.dtsi +++ b/recipes-bsp/device-tree/files/kc705-microblazeel/system-conf.dtsi | |||
diff --git a/recipes-bsp/device-tree/files/microzed/microzed-zynq7.dts b/recipes-bsp/device-tree/files/microzed-zynq7.dts index b9376a49..b9376a49 100644 --- a/recipes-bsp/device-tree/files/microzed/microzed-zynq7.dts +++ b/recipes-bsp/device-tree/files/microzed-zynq7.dts | |||
diff --git a/recipes-bsp/device-tree/files/picozed/picozed-zynq7.dts b/recipes-bsp/device-tree/files/picozed-zynq7.dts index 4ec64f5e..4ec64f5e 100644 --- a/recipes-bsp/device-tree/files/picozed/picozed-zynq7.dts +++ b/recipes-bsp/device-tree/files/picozed-zynq7.dts | |||
diff --git a/recipes-bsp/device-tree/files/qemu/qemu-zynq7.dts b/recipes-bsp/device-tree/files/qemu-zynq7.dts index cd0694d6..cd0694d6 100644 --- a/recipes-bsp/device-tree/files/qemu/qemu-zynq7.dts +++ b/recipes-bsp/device-tree/files/qemu-zynq7.dts | |||
diff --git a/recipes-bsp/device-tree/files/zybo-linux-bd/pcw.dtsi b/recipes-bsp/device-tree/files/zybo-linux-bd-zynq7/pcw.dtsi index 0f678d39..0f678d39 100644 --- a/recipes-bsp/device-tree/files/zybo-linux-bd/pcw.dtsi +++ b/recipes-bsp/device-tree/files/zybo-linux-bd-zynq7/pcw.dtsi | |||
diff --git a/recipes-bsp/device-tree/files/zybo-linux-bd/pl.dtsi b/recipes-bsp/device-tree/files/zybo-linux-bd-zynq7/pl.dtsi index 32bc7688..32bc7688 100644 --- a/recipes-bsp/device-tree/files/zybo-linux-bd/pl.dtsi +++ b/recipes-bsp/device-tree/files/zybo-linux-bd-zynq7/pl.dtsi | |||
diff --git a/recipes-bsp/device-tree/files/zybo-linux-bd/zybo-linux-bd-zynq7.dts b/recipes-bsp/device-tree/files/zybo-linux-bd-zynq7/zybo-linux-bd-zynq7.dts index 79deba49..79deba49 100644 --- a/recipes-bsp/device-tree/files/zybo-linux-bd/zybo-linux-bd-zynq7.dts +++ b/recipes-bsp/device-tree/files/zybo-linux-bd-zynq7/zybo-linux-bd-zynq7.dts | |||
diff --git a/recipes-bsp/device-tree/files/common/zynq-7000-qspi-dummy.dtsi b/recipes-bsp/device-tree/files/zynq-7000-qspi-dummy.dtsi index d059a2da..d059a2da 100644 --- a/recipes-bsp/device-tree/files/common/zynq-7000-qspi-dummy.dtsi +++ b/recipes-bsp/device-tree/files/zynq-7000-qspi-dummy.dtsi | |||