On Wed, Sep 05, 2018 at 03:15:31PM -0400, Wei Huang wrote: > The x86 boot block header currently is generated with a shell script. > To better support other CPUs (e.g. aarch64), we convert the script > into Makefile. This allows us to 1) support cross-compilation easily, > and 2) avoid creating a script file for every architecture. > > Note that, in the new design, the cross compiler prefix can be specified by > setting the CROSS_PREFIX in "make" command. Also to allow gcc pre-processor > to include the C-style file correctly, it also renames the > x86-a-b-bootblock.s file extension from .s to .S. > > Reviewed-by: Juan Quintela <quint...@redhat.com> > Signed-off-by: Wei Huang <w...@redhat.com> > --- > tests/migration/Makefile | 31 ++++++++++++++++++++ > tests/migration/rebuild-x86-bootblock.sh | 33 > ---------------------- > .../{x86-a-b-bootblock.s => x86-a-b-bootblock.S} | 0 > 3 files changed, 31 insertions(+), 33 deletions(-) > create mode 100644 tests/migration/Makefile > delete mode 100755 tests/migration/rebuild-x86-bootblock.sh > rename tests/migration/{x86-a-b-bootblock.s => x86-a-b-bootblock.S} (100%) >
Reviewed-by: Andrew Jones <drjo...@redhat.com>