On 26/04/08 00:05 +0200, Peter Stuge wrote:
On Fri, Apr 25, 2008 at 03:52:43PM -0600, Jordan Crouse wrote:
b=`echo $$file | sed -e s:$(ROM_DIR)\/*::`; \
Should the expression include ^ somehow so as to not fail on subdirs with matching names?
Or just use basename?
Its not just basename - there are also sub directories in there, i.e. $(ROM_DIR)/blob/vsa which will end up as blob/vsa in the LAR. The ^ is a good idea though.
+# FIXME: Get rid of this ifeq somehow
ifeq ($(CONFIG_COREBOOT_V2),y) -include $(CBV2_MK) +INCMK += $(PACKAGE_DIR)/coreboot-v2/coreboot-v2.mk else -include $(PACKAGE_DIR)/coreboot-v3/coreboot-v3.mk +INCMK += $(PACKAGE_DIR)/coreboot-v3/coreboot-v3.mk endif
This will have to exist _somewhere_ though.
Yes, probably.
=================================================================== --- /dev/null 1970-01-01 00:00:00.000000000 +0000 +++ buildrom-devel/packages/coreboot-v2/coreboot-v2.mk 2008-04-25 15:28:59.000000000 -0600 @@ -0,0 +1,24 @@ +# "toplevel" coreboot-v2.mk - this is where we decide +# which of the platform specific files to actually +# include
+CBV2MK-y=$(PACKAGE_DIR)/coreboot-v2/generic.mk +CBV2MK-$(CONFIG_PLATFORM_NORWICH) = $(PACKAGE_DIR)/coreboot-v2/geodelx.mk +CBV2MK-$(CONFIG_PLATFORM_MSM800SEV) = $(PACKAGE_DIR)/coreboot-v2/geodelx.mk +CBV2MK-$(CONFIG_PLATFORM_ALIX1C) = $(PACKAGE_DIR)/coreboot-v2/geodelx.mk +CBV2MK-$(CONFIG_PLATFORM_DB800) = $(PACKAGE_DIR)/coreboot-v2/geodelx.mk +CBV2MK-$(CONFIG_PLATFORM_DBE61) = $(PACKAGE_DIR)/coreboot-v2/geodelx.mk
Why is this mapping needed here? Coreboot already knows that they are lx boards? Sorry, I am a total buildrom noob so will ask many questions and try to point out not obvious things.
No problem. These are for platform specific magic that we need to do around the coreboot-v2 build, such as add different Config.lb files, etc, etc. All of the LX boards have the same platform specific magic (add VSA), so they share a similar target.
+CBV2MK-$(CONFIG_PLATFORM_TYAN_S2881) = $(PACKAGE_DIR)/coreboot-v2/tyan-s2881.mk +CBV2MK-$(CONFIG_PLATFORM_TYAN_S2882) = $(PACKAGE_DIR)/coreboot-v2/tyan-s2882.mk +CBV2MK-$(CONFIG_PLATFORM_TYAN_S2891) = $(PACKAGE_DIR)/coreboot-v2/tyan-s2891.mk +CBV2MK-$(CONFIG_PLATFORM_TYAN_S2892) = $(PACKAGE_DIR)/coreboot-v2/tyan-generic.mk +CBV2MK-$(CONFIG_PLATFORM_TYAN_S2895) = $(PACKAGE_DIR)/coreboot-v2/tyan-generic.mk
Err.. When is tyan-generic good and when is tyan-<$newboard> good?
Thats a question for Myles.
@@ -31,13 +35,19 @@ $(GEODE_PADDED_VSA): $(GEODE_COMPRESSED_VSA) @ cp $< $@ @ (size=`stat -c %s $<`; count=`expr $(GEODE_VSA_SIZE) - $$size`; \
- @ dd if=/dev/zero bs=1 count=$$count >> $@ 2> /dev/null)
- dd if=/dev/zero bs=1 count=$$count >> $@ 2> /dev/null)
On purpose?
yes - the @ is a makeism - the second @ was in the shell and freaking out sh.
Jordan