1 # This is the Generic coreboot target
3 ifeq ($(CONFIG_PLATFORM
),y
)
5 $(error You need to specify a version to pull in your platform config
)
11 ifeq ($(CONFIG_PAYLOAD_KERNEL
),y
)
12 CBV2_CONFIG
= Config-lab.lb
13 CBV2_PAYLOAD_FILE_EXT
= elf.lzma
16 ifeq ($(CONFIG_PAYLOAD_LAB
),y
)
17 CBV2_CONFIG
= Config-lab.lb
18 CBV2_PAYLOAD_FILE_EXT
= elf.lzma
23 CBV2_URL
=svn
://coreboot.org
/repos
/trunk
/coreboot-v2
24 CBV2_TARBALL
=coreboot-svn-
$(CBV2_TAG
).
tar.gz
25 CBV2_PAYLOAD_TARGET
=$(CBV2_BUILD_DIR
)/payload.
$(CBV2_PAYLOAD_FILE_EXT
)
26 TARGET_ROM
= $(COREBOOT_VENDOR
)-$(COREBOOT_BOARD
).rom
28 include $(PACKAGE_DIR
)/coreboot-v2
/coreboot.inc
30 $(SOURCE_DIR
)/$(CBV2_TARBALL
):
31 @ echo
"Fetching the coreboot code..."
32 @ mkdir
-p
$(SOURCE_DIR
)/coreboot
33 @
$(BIN_DIR
)/fetchsvn.sh
$(CBV2_URL
) $(SOURCE_DIR
)/coreboot \
34 $(CBV2_TAG
) $(SOURCE_DIR
)/$(CBV2_TARBALL
) \
35 > $(CBV2_FETCH_LOG
) 2>&1
37 $(OUTPUT_DIR
)/$(TARGET_ROM
): $(CBV2_OUTPUT
)
38 @ mkdir
-p
$(OUTPUT_DIR
)
39 @ cat
$(CBV2_OUTPUT
) > $@
41 coreboot
: $(OUTPUT_DIR
)/$(TARGET_ROM
)
42 coreboot-clean
: generic-coreboot-clean
43 coreboot-distclean
: generic-coreboot-distclean