1*fe730774SWei Huang# To specify cross compiler prefix, use CROSS_PREFIX= 2*fe730774SWei Huang# $ make CROSS_PREFIX=x86_64-linux-gnu- 3*fe730774SWei Huang 4*fe730774SWei Huangoverride define __note 5*fe730774SWei Huang/* This file is automatically generated from 6*fe730774SWei Huang * tests/migration/x86-a-b-bootblock.S, edit that and then run 7*fe730774SWei Huang * tests/migration/rebuild-x86-bootblock.sh to update, 8*fe730774SWei Huang * and then remember to send both in your patch submission. 9*fe730774SWei Huang */ 10*fe730774SWei Huangendef 11*fe730774SWei Huangexport __note 12*fe730774SWei Huang 13*fe730774SWei Huang.PHONY: all clean 14*fe730774SWei Huangall: x86-a-b-bootblock.h 15*fe730774SWei Huang 16*fe730774SWei Huangx86-a-b-bootblock.h: x86.bootsect 17*fe730774SWei Huang echo "$$__note" > header.tmp 18*fe730774SWei Huang xxd -i $< | sed -e 's/.*int.*//' >> header.tmp 19*fe730774SWei Huang mv header.tmp $@ 20*fe730774SWei Huang 21*fe730774SWei Huangx86.bootsect: x86.boot 22*fe730774SWei Huang dd if=$< of=$@ bs=256 count=2 skip=124 23*fe730774SWei Huang 24*fe730774SWei Huangx86.boot: x86.o 25*fe730774SWei Huang $(CROSS_PREFIX)objcopy -O binary $< $@ 26*fe730774SWei Huang 27*fe730774SWei Huangx86.o: x86-a-b-bootblock.S 28*fe730774SWei Huang $(CROSS_PREFIX)gcc -m32 -march=i486 -c $< -o $@ 29*fe730774SWei Huang 30*fe730774SWei Huangclean: 31*fe730774SWei Huang @rm -rf *.boot *.o *.bootsect 32