aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrent Cook <busterb@gmail.com>2019-05-17 02:10:28 -0700
committerBrent Cook <busterb@gmail.com>2019-06-10 06:49:34 -0500
commit4dabadaf4dd5dc971174af6e861acaf5a16b8f93 (patch)
treee6ef095fcaf91ba399709ea3890786f37d0c5dea
parent3e6d12d318f304393a8bbda13bedbbc1a46b7b69 (diff)
downloadportable-4dabadaf4dd5dc971174af6e861acaf5a16b8f93.tar.gz
portable-4dabadaf4dd5dc971174af6e861acaf5a16b8f93.tar.bz2
portable-4dabadaf4dd5dc971174af6e861acaf5a16b8f93.zip
run masm files through the C preprocessor
-rwxr-xr-xupdate.sh12
1 files changed, 10 insertions, 2 deletions
diff --git a/update.sh b/update.sh
index 2e1f5c7..99a293a 100755
--- a/update.sh
+++ b/update.sh
@@ -167,7 +167,11 @@ gen_asm_stdout() {
167 .section .note.GNU-stack,"",%progbits 167 .section .note.GNU-stack,"",%progbits
168 #endif 168 #endif
169 EOF 169 EOF
170 $MV $3.tmp $3 170 if [ $1 = "masm" ]; then
171 cpp -I./crypto $3.tmp > $3
172 else
173 $MV $3.tmp $3
174 fi
171} 175}
172gen_asm() { 176gen_asm() {
173 CC=true perl $asm_src/$2 $1 $3.tmp 177 CC=true perl $asm_src/$2 $1 $3.tmp
@@ -176,7 +180,11 @@ gen_asm() {
176 .section .note.GNU-stack,"",%progbits 180 .section .note.GNU-stack,"",%progbits
177 #endif 181 #endif
178 EOF 182 EOF
179 $MV $3.tmp $3 183 if [ $1 = "masm" ]; then
184 cpp -I./crypto $3.tmp > $3
185 else
186 $MV $3.tmp $3
187 fi
180} 188}
181 189
182echo generating arm ASM source for elf 190echo generating arm ASM source for elf