Author: oxygene
Date: Sat May 21 01:08:12 2011
New Revision: 6605
URL: https://tracker.coreboot.org/trac/coreboot/changeset/6605
Log:
Handle both cases, obj being absolute and relative
gnu make's handling of filenames is less than optimal. It simply
compares strings, so foo/../bar is different from bar, even though
they're logically the same.
Signed-off-by: Patrick Georgi <patrick(a)georgi-clan.de>
Acked-by: Patrick Georgi <patrick(a)georgi-clan.de>
Modified:
trunk/Makefile.inc
Modified: trunk/Makefile.inc
==============================================================================
--- trunk/Makefile.inc Sat May 21 00:17:58 2011 (r6604)
+++ trunk/Makefile.inc Sat May 21 01:08:12 2011 (r6605)
@@ -179,7 +179,7 @@
@printf " HOSTCC $(subst $(objutil)/,,$(@))\n"
$(HOSTCC) -MMD -I$(subst $(objutil)/,util/,$(dir $<)) -I$(dir $<) $(HOSTCFLAGS) -c -o $@ $<
-$(abspath $(obj))/%.ramstage.o: $(obj)/%.c $(obj)/config.h $(OPTION_TABLE_H)
+$(obj)/%.ramstage.o $(abspath $(obj))/%.ramstage.o: $(obj)/%.c $(obj)/config.h $(OPTION_TABLE_H)
@printf " CC $(subst $(obj)/,,$(@))\n"
$(CC) -MMD $(CFLAGS) -c -o $@ $<
Author: oxygene
Date: Sat May 21 00:16:49 2011
New Revision: 6603
URL: https://tracker.coreboot.org/trac/coreboot/changeset/6603
Log:
iasl still can't cope with extra "." in file paths
It's really a work around, but given how this issue seems to come
back again and again, let's work around it.
Signed-off-by: Patrick Georgi <patrick.georgi(a)secunet.com>
Acked-by: Stefan Reinauer <stefan.reinauer(a)coreboot.org>
Modified:
trunk/Makefile.inc
Modified: trunk/Makefile.inc
==============================================================================
--- trunk/Makefile.inc Sat May 21 00:14:07 2011 (r6602)
+++ trunk/Makefile.inc Sat May 21 00:16:49 2011 (r6603)
@@ -64,7 +64,7 @@
$(obj)/$(1).ramstage.o: src/$(1).asl $(obj)/config.h
@printf " IASL $$(subst $(top)/,,$$(@))\n"
$(CC) -x assembler-with-cpp -E -MMD -MT $$(@) -D__ACPI__ -P -include $(abspath $(obj)/config.h) -I$(src) -I$(src)/mainboard/$(MAINBOARDDIR) $$< -o $$(basename $$(a)).asl
- iasl -p $$(obj)/$(1) -tc $$(basename $$(a)).asl
+ cd $$(dir $$@); iasl -p $$(abspath $$(obj)/$(1)) -tc $$(notdir $$(basename $$(a))).asl
mv $$(obj)/$(1).hex $$(basename $$(a)).c
$(CC) $$(CFLAGS) $$(if $$(subst dsdt,,$$(basename $$(notdir $(1)))), -DAmlCode=AmlCode_$$(basename $$(notdir $(1)))) -c -o $$@ $$(basename $$(a)).c
# keep %.o: %.c rule from catching the temporary .c file after a make clean
Author: oxygene
Date: Sat May 21 00:14:07 2011
New Revision: 6602
URL: https://tracker.coreboot.org/trac/coreboot/changeset/6602
Log:
Fix ccache behaviour if more than one ccache in PATH
Signed-off-by: Patrick Georgi <patrick.georgi(a)secunet.com>
Acked-by: Stefan Reinauer <stefan.reinauer(a)coreboot.org>
Modified:
trunk/Makefile
Modified: trunk/Makefile
==============================================================================
--- trunk/Makefile Fri May 20 19:50:14 2011 (r6601)
+++ trunk/Makefile Sat May 21 00:14:07 2011 (r6602)
@@ -109,7 +109,7 @@
endif
ifeq ($(CONFIG_CCACHE),y)
-CCACHE:=$(wildcard $(addsuffix /ccache,$(subst :, ,$(PATH))))
+CCACHE:=$(word 1,$(wildcard $(addsuffix /ccache,$(subst :, ,$(PATH)))))
ifeq ($(CCACHE),)
$(error ccache selected, but not found in PATH)
endif
Author: mjones
Date: Sun May 15 23:54:04 2011
New Revision: 6584
URL: https://tracker.coreboot.org/trac/coreboot/changeset/6584
Log:
Enable SPI cacheline prefetch early to reduce boot time.
Signed-off-by: Scott Duplichan <scott(a)notabs.org>
Acked-by: Marc Jones <marcj303(a)gmail.com>
Modified:
trunk/src/mainboard/amd/persimmon/romstage.c
Modified: trunk/src/mainboard/amd/persimmon/romstage.c
==============================================================================
--- trunk/src/mainboard/amd/persimmon/romstage.c Sun May 15 23:51:31 2011 (r6583)
+++ trunk/src/mainboard/amd/persimmon/romstage.c Sun May 15 23:54:04 2011 (r6584)
@@ -50,6 +50,13 @@
// all cores: set pstate 0 (1600 MHz) early to save a few ms of boot time
__writemsr (0xc0010062, 0);
+ // early enable of PrefetchEnSPIFromHost
+ if (boot_cpu())
+ {
+ __outdword (0xcf8, 0x8000a3b8);
+ __outdword (0xcfc, __indword (0xcfc) | 0 << 24);
+ }
+
// early enable of SPI 33 MHz fast mode read
if (boot_cpu())
{