VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   33 Branches   57 Tags
0cf264b3133dc (Mark Rutland   2019-02-11 13:20:35 +0000  1) #!/bin/sh
0cf264b3133dc (Mark Rutland   2019-02-11 13:20:35 +0000  2) # SPDX-License-Identifier: GPL-2.0
0cf264b3133dc (Mark Rutland   2019-02-11 13:20:35 +0000  3) #
0cf264b3133dc (Mark Rutland   2019-02-11 13:20:35 +0000  4) # Generate atomic headers
0cf264b3133dc (Mark Rutland   2019-02-11 13:20:35 +0000  5) 
0cf264b3133dc (Mark Rutland   2019-02-11 13:20:35 +0000  6) ATOMICDIR=$(dirname $0)
0cf264b3133dc (Mark Rutland   2019-02-11 13:20:35 +0000  7) ATOMICTBL=${ATOMICDIR}/atomics.tbl
0cf264b3133dc (Mark Rutland   2019-02-11 13:20:35 +0000  8) LINUXDIR=${ATOMICDIR}/../..
0cf264b3133dc (Mark Rutland   2019-02-11 13:20:35 +0000  9) 
0cf264b3133dc (Mark Rutland   2019-02-11 13:20:35 +0000 10) cat <<EOF |
e3d18cee258b8 (Mark Rutland   2021-07-13 11:52:51 +0100 11) gen-atomic-instrumented.sh      linux/atomic/atomic-instrumented.h
e3d18cee258b8 (Mark Rutland   2021-07-13 11:52:51 +0100 12) gen-atomic-long.sh              linux/atomic/atomic-long.h
e3d18cee258b8 (Mark Rutland   2021-07-13 11:52:51 +0100 13) gen-atomic-fallback.sh          linux/atomic/atomic-arch-fallback.h
0cf264b3133dc (Mark Rutland   2019-02-11 13:20:35 +0000 14) EOF
37f8173dd8493 (Peter Zijlstra 2020-01-24 22:13:03 +0100 15) while read script header args; do
37f8173dd8493 (Peter Zijlstra 2020-01-24 22:13:03 +0100 16) 	/bin/sh ${ATOMICDIR}/${script} ${ATOMICTBL} ${args} > ${LINUXDIR}/include/${header}
0cf264b3133dc (Mark Rutland   2019-02-11 13:20:35 +0000 17) 	HASH="$(sha1sum ${LINUXDIR}/include/${header})"
0cf264b3133dc (Mark Rutland   2019-02-11 13:20:35 +0000 18) 	HASH="${HASH%% *}"
0cf264b3133dc (Mark Rutland   2019-02-11 13:20:35 +0000 19) 	printf "// %s\n" "${HASH}" >> ${LINUXDIR}/include/${header}
0cf264b3133dc (Mark Rutland   2019-02-11 13:20:35 +0000 20) done