-include ../config.mk
+-include ../ich2/config.mk
-OBJS=main.o mbentry.o realmode.o loader.o ../pci/pci-raw.o ../lib/minilib.o ../lib/console.o ../ich2/smram-ich2.o ../ich2/smi.o output.o ../lib/sprintf.o ../lib/doprnt.o ../pci/pci.o
+OBJS=main.o mbentry.o realmode.o loader.o ../pci/pci-raw.o ../lib/minilib.o ../lib/console.o $(CHIP_OBJS) output.o ../lib/sprintf.o ../lib/doprnt.o ../pci/pci.o
CC=$(CROSS)gcc
CFLAGS=-nostdlib -I../include -I../include/raw -I. -D__RAW__ -fno-builtin -nostdinc -Wall -Werror -pedantic -std=gnu99
#ifndef __SMRAM_H
#define __SMRAM_H
-#include "../ich2/smram-ich2.h"
+#include "smram-hardware.h"
extern int smram_locked();
extern smram_state_t smram_save_state();
-include ../config.mk
+-include ../ich2/config.mk
CC=$(CROSS)gcc
-CFLAGS=-I../include -I../include/raw \
- -I../lwip/src/include -I../lwip/src/include/ipv4 \
- -nostdlib -nostdinc -fno-builtin -D__RAW__ \
- -Wall -Werror -std=gnu99 -Wstrict-aliasing=2 \
- -O1 -fno-merge-constants -fno-strict-aliasing
+CFLAGS+=-I../include -I../include/raw \
+ -I../lwip/src/include -I../lwip/src/include/ipv4 \
+ -nostdlib -nostdinc -fno-builtin -D__RAW__ \
+ -Wall -Werror -std=gnu99 -Wstrict-aliasing=2 \
+ -O1 -fno-merge-constants -fno-strict-aliasing
STUBOBJS=entry.o pagingstub-asm.o pagingstub.o
../lwip/src/netif/ethernetif.o
-OBJS = ../ich2/smi.o \
- ../ich2/smram-ich2.o \
- ../ich2/ich2-timer.o \
+OBJS = $(CHIP_OBJS) \
../pci/pci.o \
../pci/pci-raw.o \
../pci/pci-bother.o \