diff options
author | Mark Hatle <mark.hatle@amd.com> | 2023-06-19 14:44:40 -0700 |
---|---|---|
committer | Mark Hatle <mark.hatle@amd.com> | 2023-06-21 15:07:01 -0500 |
commit | 6fd3d3532311675a7074cbbd4efe1683ead6624b (patch) | |
tree | d5001183d0f0409fe89ac01d6a5f394a77b9d1c0 /meta-xilinx-standalone-experimental/recipes-core | |
parent | 1beca9030170ed6bd86d51654adfbdb2673e1d6d (diff) | |
download | meta-xilinx-6fd3d3532311675a7074cbbd4efe1683ead6624b.tar.gz |
dt-processor.sh: Add -O option to allow the user to add overrides
Additional MACHINEOVERRIDES can be automatically appeneded by using the
-O option. No validation is preformed, but the value is used in the
generated content. For example:
dt-processor.sh .... -O override1:override2
The generated content will be:
MACHINEOVERRDIES .= ":override1:override2"
Signed-off-by: Mark Hatle <mark.hatle@amd.com>
Diffstat (limited to 'meta-xilinx-standalone-experimental/recipes-core')
-rwxr-xr-x | meta-xilinx-standalone-experimental/recipes-core/meta/files/dt-processor.sh | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/meta-xilinx-standalone-experimental/recipes-core/meta/files/dt-processor.sh b/meta-xilinx-standalone-experimental/recipes-core/meta/files/dt-processor.sh index c1be40b0..376785f3 100755 --- a/meta-xilinx-standalone-experimental/recipes-core/meta/files/dt-processor.sh +++ b/meta-xilinx-standalone-experimental/recipes-core/meta/files/dt-processor.sh | |||
@@ -44,6 +44,7 @@ $0 | |||
44 | [-t <machine>] Machine type: zynqmp or versal (usually auto detected) | 44 | [-t <machine>] Machine type: zynqmp or versal (usually auto detected) |
45 | [-v <soc_variant>] SOC Variant: cg, dr, eg, ev, ai-prime, premium (usually auto detected) | 45 | [-v <soc_variant>] SOC Variant: cg, dr, eg, ev, ai-prime, premium (usually auto detected) |
46 | [-r <require_machine>] This machine will be required, instead of the generic machine if defined | 46 | [-r <require_machine>] This machine will be required, instead of the generic machine if defined |
47 | [-O <overrides>] Optional, can add additional overrides to the generated machine | ||
47 | [-p <psu_init_path>] Path to psu_init files, defaults to system_dts path | 48 | [-p <psu_init_path>] Path to psu_init files, defaults to system_dts path |
48 | [-i <pdi_path>] Path to the pdi file | 49 | [-i <pdi_path>] Path to the pdi file |
49 | [-l <config_file>] write local.conf changes to this file | 50 | [-l <config_file>] write local.conf changes to this file |
@@ -57,7 +58,7 @@ parse_args() { | |||
57 | [ $# -eq 0 ] && usage | 58 | [ $# -eq 0 ] && usage |
58 | [ $1 = "--help" ] && usage | 59 | [ $1 = "--help" ] && usage |
59 | 60 | ||
60 | while getopts ":c:s:d:o:e:m:D:l:hP:p:i:t:v:r:" opt; do | 61 | while getopts ":c:s:d:o:e:m:D:l:hP:p:i:t:v:r:O:" opt; do |
61 | case ${opt} in | 62 | case ${opt} in |
62 | c) config_dir=$OPTARG ;; | 63 | c) config_dir=$OPTARG ;; |
63 | s) system_dts=$OPTARG ;; | 64 | s) system_dts=$OPTARG ;; |
@@ -69,6 +70,7 @@ parse_args() { | |||
69 | t) machine=$OPTARG ;; | 70 | t) machine=$OPTARG ;; |
70 | v) soc_variant=$OPTARG ;; | 71 | v) soc_variant=$OPTARG ;; |
71 | r) incmachine=$OPTARG ;; | 72 | r) incmachine=$OPTARG ;; |
73 | O) overrides=$OPTARG ;; | ||
72 | p) psu_init_path=$OPTARG ;; | 74 | p) psu_init_path=$OPTARG ;; |
73 | i) pdi_path=$OPTARG ;; | 75 | i) pdi_path=$OPTARG ;; |
74 | l) localconf=$OPTARG ;; | 76 | l) localconf=$OPTARG ;; |
@@ -883,6 +885,10 @@ MACHINEOVERRIDES =. "\${@['', '${mach_conf}:']['${mach_conf}' != '\${MACHINE}']} | |||
883 | 885 | ||
884 | EOF | 886 | EOF |
885 | 887 | ||
888 | if [ -n "${overrides}" ]; then | ||
889 | echo "MACHINEOVERRIDES .= \":${overrides}\"" | ||
890 | fi | ||
891 | |||
886 | if [ "${machine}" == "zynqmp" ]; then | 892 | if [ "${machine}" == "zynqmp" ]; then |
887 | cat <<EOF >>"${conf_file}" | 893 | cat <<EOF >>"${conf_file}" |
888 | TUNEFILE[microblaze-pmu] = "conf/machine/include/${mach_conf}/microblaze.inc" | 894 | TUNEFILE[microblaze-pmu] = "conf/machine/include/${mach_conf}/microblaze.inc" |