summaryrefslogtreecommitdiffstats
path: root/meta-xilinx-standalone-experimental
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@amd.com>2023-06-19 14:44:39 -0700
committerMark Hatle <mark.hatle@amd.com>2023-06-21 15:07:01 -0500
commit1beca9030170ed6bd86d51654adfbdb2673e1d6d (patch)
tree44dfb8e21cfcd413feefbb5aba97738ad08b2663 /meta-xilinx-standalone-experimental
parentc8751de878c0ea341faff089d0e16decbf6176c9 (diff)
downloadmeta-xilinx-1beca9030170ed6bd86d51654adfbdb2673e1d6d.tar.gz
dt-processor.sh: Add -r option to defined required (inherited)
[-r <require_machine>] This machine will be required, instead of the generic machine if defined For example: dt-processor.sh -m xilinx-zynqmp-sc-revb -r eval-brd-sc-zynqmp.conf This will create a new machine 'xilinx-zynqmp-sc-revb' which will generate: require conf/machine/eval-brd-sc-zynqmp.conf The value of -r is not verified, but is designed to allow for arbitrary values such as: -r include/kria-k24-generic.inc Signed-off-by: Mark Hatle <mark.hatle@amd.com>
Diffstat (limited to 'meta-xilinx-standalone-experimental')
-rwxr-xr-xmeta-xilinx-standalone-experimental/recipes-core/meta/files/dt-processor.sh12
1 files changed, 9 insertions, 3 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 c51e209c..c1be40b0 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
@@ -43,6 +43,7 @@ $0
43 [-D <dts_name>] Directory to place DTS files in (usually auto detected from DTS) 43 [-D <dts_name>] Directory to place DTS files in (usually auto detected from DTS)
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 [-p <psu_init_path>] Path to psu_init files, defaults to system_dts path 47 [-p <psu_init_path>] Path to psu_init files, defaults to system_dts path
47 [-i <pdi_path>] Path to the pdi file 48 [-i <pdi_path>] Path to the pdi file
48 [-l <config_file>] write local.conf changes to this file 49 [-l <config_file>] write local.conf changes to this file
@@ -56,7 +57,7 @@ parse_args() {
56 [ $# -eq 0 ] && usage 57 [ $# -eq 0 ] && usage
57 [ $1 = "--help" ] && usage 58 [ $1 = "--help" ] && usage
58 59
59 while getopts ":c:s:d:o:e:m:D:l:hP:p:i:t:v:" opt; do 60 while getopts ":c:s:d:o:e:m:D:l:hP:p:i:t:v:r:" opt; do
60 case ${opt} in 61 case ${opt} in
61 c) config_dir=$OPTARG ;; 62 c) config_dir=$OPTARG ;;
62 s) system_dts=$OPTARG ;; 63 s) system_dts=$OPTARG ;;
@@ -67,6 +68,7 @@ parse_args() {
67 D) dts_name=$OPTARG ;; 68 D) dts_name=$OPTARG ;;
68 t) machine=$OPTARG ;; 69 t) machine=$OPTARG ;;
69 v) soc_variant=$OPTARG ;; 70 v) soc_variant=$OPTARG ;;
71 r) incmachine=$OPTARG ;;
70 p) psu_init_path=$OPTARG ;; 72 p) psu_init_path=$OPTARG ;;
71 i) pdi_path=$OPTARG ;; 73 i) pdi_path=$OPTARG ;;
72 l) localconf=$OPTARG ;; 74 l) localconf=$OPTARG ;;
@@ -136,11 +138,15 @@ detect_machine() {
136 soc_variant="hbm" ;; 138 soc_variant="hbm" ;;
137 # Special Case Starter Kit SOMs 139 # Special Case Starter Kit SOMs
138 xck26) 140 xck26)
139 incmachine="k26-smk.conf" 141 if [ -z "${incmachine}" ]; then
142 incmachine="k26-smk.conf"
143 fi
140 machine="zynqmp" 144 machine="zynqmp"
141 soc_variant="ev" ;; 145 soc_variant="ev" ;;
142 xck24) 146 xck24)
143 incmachine="k24-smk.conf" 147 if [ -z "${incmachine}" ]; then
148 incmachine="k24-smk.conf"
149 fi
144 machine="zynqmp" 150 machine="zynqmp"
145 soc_variant="eg" ;; 151 soc_variant="eg" ;;
146 esac 152 esac