Ben Dooks and Anup Patel
2c76548cba
script/carry.sh: send error to stderr
...
Send the errors to stderr, otherwise they end up being
written to the file the script was redirecting to in the
Makefile
Also, use EOF block to make it easier to redirect
Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk >
Reviewed-by: Anup Patel <anup@brainfault.org >
2024-12-15 12:30:50 +05:30
Ben Dooks and Anup Patel
a36cd1b043
Makefile: remove carry output if scripts/carray.sh fails
...
If the script fails, we end up trying to build either
an empty or damaged .c file. Just remove it and let
gcc fail on non-existent file.
Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk >
Reviewed-by: Anup Patel <anup@brainfault.org >
2024-12-15 12:30:47 +05:30
Ben Dooks and Anup Patel
c7866d99fe
top: add ~ files to .gitignore
...
Ignore temporary files, and avoid accidentally adding
them to a commit.
Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk >
Reviewed-by: Anup Patel <anup@brainfault.org >
2024-12-15 12:30:45 +05:30
Ben Dooks and Anup Patel
1ede0cab0e
Makefile: remove any .carray.c during clean
...
Now we've renamed the carray output files to .carray.c
we can now use find to remove them.
Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk >
Reviewed-by: Andrew Jones <ajones@ventanamicro.com >
Reviewed-by: Anup Patel <anup@brainfault.org >
2024-07-04 12:11:50 +05:30
Ben Dooks and Anup Patel
fd9e8b17ed
Makefile: change to using .carray.c for carray files
...
We would like to clean any files generated by the carray
scripts by just searching for the filename as the current
make system turns f.carray into f.o. Change to make the
make system turn f.carray into f.carray.o
note, command to go through .mk files changing the .o
in the .mk files is:
find . -type f -name "*.carray" | xargs -t -I fname /bin/bash -x -c ' fn=`basename -s .carray fname`; echo "$fn"; sed -i `dirname fname `/objects.mk -e s/"$fn".o/"$fn".carray.o/g'
Link: https://patchwork.ozlabs.org/project/opensbi/patch/20240401213438.590209-2-ivan.orlov0322@gmail.com/
Reported-by: Ivan Orlov <ivan.orlov0322@gmail.com >
Suggested-by: Andrew Jones <ajones@ventanamicro.com >
Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk >
Reviewed-by: Andrew Jones <ajones@ventanamicro.com >
Reviewed-by: Anup Patel <anup@brainfault.org >
2024-07-04 12:11:45 +05:30