Omit the build directory path from os.offsets.hex

The build directory is not the same for the normal build and the build made to check for reproducibility.
This commit is contained in:
Georges Dupéron 2018-09-23 09:40:42 +02:00
parent ef39ce5f07
commit 6f0e326fc2
No known key found for this signature in database
GPG Key ID: C7976374130A80F7

View File

@ -380,10 +380,10 @@ ${bld}/os.gdisk: ${os_filename} ${bld}/check_makefile
printf '2\nx\np\ni\nr\no\nq\n' | ${gdisk_pipe_commands_slowly} | gdisk $< | tee $@
${bld}/os.offsets.hex: ${offset_names:%=${bld}/offsets/%.hex} ${bld}/check_makefile
grep '^' ${offset_names:%=${bld}/offsets/%.hex} | sed -e 's/:/: 0x/' | column -t > $@
grep '^' ${offset_names:%=${bld}/offsets/%.hex} | sed -e 's|^.*/||' -e 's/:/: 0x/' | column -t > $@
${bld}/os.offsets.dec: ${offset_names:%=${bld}/offsets/%.dec} ${bld}/check_makefile
grep '^' ${offset_names:%=${bld}/offsets/%.dec} | sed -e 's/:/: /' | column -t > $@
grep '^' ${offset_names:%=${bld}/offsets/%.dec} | sed -e 's|^.*/||' -e 's/:/: /' | column -t > $@
${bld}/offsets/%.hex: ${bld}/offsets/%.dec
printf '%x\n' $$(cat $<) > $@