bde683ce9f
1 - Moved the check sum validation to probe_table function. 2 - Proper handling of resources allocated. 3 - Signature check is done in 16 byte boundaries. 4 - irq_tables.c file is created only if a valid PIRQ table is found. 5 – Makefile and README file are modified accordingly. Signed-off-by: Mohamed Mansoor <mansoor@iwavesystems.com> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4680 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
24 lines
337 B
Makefile
24 lines
337 B
Makefile
#
|
|
#
|
|
#
|
|
|
|
CC=gcc
|
|
CFLAGS=-O2 -D_GNU_SOURCE -DGETPIR -Wall
|
|
|
|
all: getpir
|
|
|
|
getpir: getpir.o checksum.o code_gen.o
|
|
$(CC) $(CFLAGS) -o getpir $^
|
|
|
|
checkpir: checkpir.c checksum.o irq_tables.o
|
|
$(CC) $(CFLAGS) -o checkpir $^
|
|
|
|
irq_tables.c: getpir
|
|
./getpir
|
|
|
|
clean:
|
|
rm -f getpir checkpir *.o *~
|
|
|
|
distclean: clean
|
|
rm -f irq_tables.o irq_tables.c
|
|
|