First attempt to integrate SMM in Kconfig. Unused code so far

Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>



git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4833 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
Stefan Reinauer 2009-10-24 03:33:44 +00:00 committed by Stefan Reinauer
parent 42dc721cdf
commit 60fc92a42e
1 changed files with 24 additions and 25 deletions

View File

@ -18,28 +18,27 @@
## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA ## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
## ##
##if CONFIG_HAVE_SMI_HANDLER
## object smmrelocate.S
## obj-$(CONFIG_HAVE_SMI_HANDLER) += smmrelocate.S
## smmobject smmhandler.S obj-$(CONFIG_HAVE_SMI_HANDLER) += smm_bin.o
## smmobject smihandler.o
## smmobj-y += smmhandler.S
## makerule smm.o smmobj-y += smihandler.o
## depends "$(SMM-OBJECTS) $(TOP)/src/console/printk.o $(TOP)/src/console/vtxprintf.o $(LIBGCC_FILE_NAME)" smmobj-y += smiutil.o
## action "$(CC) $(DISTRO_LFLAGS) -nostdlib -r -o $@ $^"
## end ifdef POST_EVALUATION
##
## makerule smm $(obj)/cpu/x86/smm/smm.o: $(SMM-OBJECTS) $(obj)/console/printk.o $(obj)/console/vtxprintf.o $(LIBGCC_FILE_NAME)
## depends "smm.o $(TOP)/src/cpu/x86/smm/smm.ld ldoptions" $(CC) $(LDFLAGS) -nostdlib -r -o $@ $^
## action "$(CC) $(DISTRO_LFLAGS) -nostdlib -nostartfiles -static -o smm.elf -T $(TOP)/src/cpu/x86/smm/smm.ld smm.o"
## action "$(CONFIG_CROSS_COMPILE)nm -n smm.elf | sort > smm.map" $(obj)/cpu/x86/smm/smm: $(obj)/cpu/x86/smm/smm.o $(obj)/cpu/x86/smm/smm.ld ldoptions
## action "$(OBJCOPY) -O binary smm.elf smm" $(CC) $(LDFLAGS) -nostdlib -nostartfiles -static -o smm.elf -T $(src)/src/cpu/x86/smm/smm.ld smm.o
## end $(CONFIG_CROSS_COMPILE)nm -n smm.elf | sort > smm.map
## $(OBJCOPY) -O binary smm.elf smm
## makerule smm_bin.c
## depends "smm" $(obj)/cpu/x86/smm/smm_bin.c: $(obj)/cpu/x86/smm/smm
## action "(echo 'unsigned char smm[] = {'; od -vtx1 smm | sed -e 's,^[0-9]* *,,' -e 's:[0-9a-f][0-9a-f] :0x&,:g' -e 's:[0-9a-f][0-9a-f]$$:0x&,:'; echo '}; unsigned int smm_len = '; wc -c smm |awk '{print $$1;}' ; echo ';') > smm_bin.c" (echo 'unsigned char smm[] = {'; od -vtx1 smm | sed -e 's,^[0-9]* *,,' -e 's:[0-9a-f][0-9a-f] :0x&,:g' -e 's:[0-9a-f][0-9a-f]$$:0x&,:'; echo '}; unsigned int smm_len = '; wc -c smm |awk '{print $$1;}' ; echo ';') > $@
## end
## endif
## object ./smm_bin.o
##end