mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-01-05 07:35:31 +00:00
use genld.sh to generate link_ram.ld
Use genld.sh instead of config.h to generate link_ram.ld.
It can avoid the conflicts of the syntax between ld script and
C.
V1->V2:
change the deps name to config,
Tracked-On: #861
Signed-off-by: Huihuang Shi <huihuang.shi@intel.com>
reviewed-by: Junjie Mao <junjie.mao@intel.com>
This commit is contained in:
13
hypervisor/scripts/genld.sh
Executable file
13
hypervisor/scripts/genld.sh
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
in=$1
|
||||
out=$2
|
||||
config=$3
|
||||
|
||||
cp $in $out
|
||||
grep -v "^#" ${config} | while read line; do
|
||||
IFS='=' read -ra arr <<<"$line"
|
||||
field=${arr[0]}
|
||||
value=${arr[1]}
|
||||
sed -i "s/\b$field\b/$value/g" $out
|
||||
done
|
||||
Reference in New Issue
Block a user