From 36612706911843b4b900f8760003a8cc728d39d3 Mon Sep 17 00:00:00 2001 From: Jeremy Compostella Date: Thu, 14 Aug 2014 13:17:40 +0200 Subject: fix cpuid asm instruction call This patch cfixes some compilation warning and clean the Android.mk a little bit. Bug: 16928801 Change-Id: Icc277c0871cce83e183a109cfe24daf6e5ad8fab Signed-off-by: Jeremy Compostella --- Makefile | 47 ----------------------------------------------- 1 file changed, 47 deletions(-) delete mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile deleted file mode 100644 index 72bb817..0000000 --- a/Makefile +++ /dev/null @@ -1,47 +0,0 @@ -OBJ=bootstub.o spi-uart.o head.o sfi.o e820_bios.o ssp-uart.o -CMDLINE_SIZE ?= 0x400 -CFLAGS=-m32 -ffreestanding -Wall -DCMDLINE_SIZE=${CMDLINE_SIZE} -CC ?= gcc - -all: bootstub - -bootstub:bootstub.bin - cat bootstub.bin /dev/zero | dd bs=4096 count=1 > $@ - -bootstub.bin:bootstub.elf - objcopy -O binary -R .note -R .comment -S $< $@ - -bootstub.elf:bootstub.lds $(OBJ) - ld -m elf_i386 -T bootstub.lds $(OBJ) -o $@ - -bootstub.o:bootstub.c bootstub.h - ${CC} $(CFLAGS) -c bootstub.c - -spi-uart.o:spi-uart.c spi-uart.h - ${CC} $(CFLAGS) -c spi-uart.c - -ssp-uart.o:ssp-uart.c ssp-uart.h - ${CC} $(CFLAGS) -c ssp-uart.c - -sfi.o:sfi.c - ${CC} $(CFLAGS) -c sfi.c - -head.o:head.S bootstub.h - ${CC} $(CFLAGS) -D__ASSEMBLY__ -c head.S - -e820_bios.o:e820_bios.S bootstub.h - ${CC} $(CFLAGS) -D__ASSEMBLY__ -c e820_bios.S - -clean: - rm -rf *.o *.bin *.elf *.bz2 *.rpm - -rm bootstub - -source:bootstub.c head.S VERSION - git archive --prefix=bootstub-`head -n 1 VERSION | awk '{print $$1}'`/ --format=tar HEAD | bzip2 -c > bootstub-`head -n 1 VERSION | awk '{print $$1}'`.tar.bz2 - -rpm:source - cp bootstub.spec /usr/src/redhat/SPECS/ - cp *.tar.bz2 /usr/src/redhat/SOURCES/ - rpmbuild -ba /usr/src/redhat/SPECS/bootstub.spec - cp /usr/src/redhat/RPMS/i386/bootstub*.rpm ./ -.PHONY: all clean source rpm -- cgit v1.2.3