'make clean' should tell buildrom that the package is now unconfigured.
[buildrom.git] / buildrom-devel / packages / coreboot-v2 / tyan-s2881.mk
blob697f834019340c9997f084daeac90d34a1d8bd7d
1 # This is the Generic coreboot target
3 ifeq ($(CONFIG_PLATFORM),y)
4 ifeq ($(CBV2_TAG),)
5 $(error You need to specify a version to pull in your platform config)
6 endif
7 endif
9 CBV2_PATCHES=
11 ifeq ($(CONFIG_PAYLOAD_KERNEL),y)
12 CBV2_CONFIG = Config-lab.lb
13 CBV2_PAYLOAD_FILE_EXT = elf.lzma
14 endif
16 ifeq ($(CONFIG_PAYLOAD_LAB),y)
17 CBV2_CONFIG = Config-lab.lb
18 CBV2_PAYLOAD_FILE_EXT = elf.lzma
19 endif
22 CBV2_BASE_DIR=svn
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