Changeset 5103


Ignore:
Timestamp:
Feb 9, 2010, 7:41:11 PM (6 years ago)
Author:
oxygene
Message:

Add image updating support. When selecting it, it
expects a coreboot.rom to be available, and adds the files to it.

It has no idea how to replace files, it merely adds them. It only works
with Tinybootblock and the bootblock is immutable.

The "clean" rules allow "make clean-for-update", which
removes everything but coreboot.rom

Signed-off-by: Patrick Georgi <patrick.georgi@…>
Acked-by: Peter Stuge <peter@…>

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Makefile

    r5096 r5103  
    285285        rm -rf $(DOXYGEN_OUTPUT_DIR)
    286286
    287 clean: doxygen-clean
    288         rm -f $(allobjs) $(obj)/coreboot* .xcompile
     287clean-for-update: doxygen-clean
     288        rm -f $(objs) $(initobjs) $(drivers) $(smmobjs) .xcompile
     289        rm -f $(obj)/coreboot_ram* $(obj)/coreboot.romstage $(obj)/coreboot.pre* $(obj)/coreboot.bootblock $(obj)/coreboot.a
    289290        rm -rf $(obj)/bootblock* $(obj)/romstage* $(obj)/location.*
    290         rm -f $(obj)/option_table.* $(obj)/crt0_includes.h $(obj)/ldscript
     291        rm -f $(obj)/option_table.* $(obj)/crt0_includes.h $(obj)/ldscript $(obj)/config.h
    291292        rm -f $(obj)/mainboard/$(MAINBOARDDIR)/static.c $(obj)/mainboard/$(MAINBOARDDIR)/config.py $(obj)/mainboard/$(MAINBOARDDIR)/static.dot
    292293        rm -f $(obj)/mainboard/$(MAINBOARDDIR)/auto.inc $(obj)/mainboard/$(MAINBOARDDIR)/crt0.s $(obj)/mainboard/$(MAINBOARDDIR)/crt0.disasm
     
    294295        $(MAKE) -C util/sconfig clean
    295296
     297clean: clean-for-update
     298        rm -f $(obj)/coreboot*
     299
    296300distclean: clean
    297301        rm -rf $(obj)
  • trunk/src/arch/i386/Kconfig

    r5099 r5103  
    5050        default y
    5151
     52config UPDATE_IMAGE
     53        bool "Update existing coreboot.rom image"
     54        default n
     55        depends on TINY_BOOTBLOCK
     56        help
     57                If this option is activate, no new coreboot.rom file
     58                is created. Instead it is expected that there already
     59                is a suitable file for further processing.
     60                The bootblock will not be modified.
     61
    5262config ROMCC
    5363        bool
  • trunk/src/arch/i386/Makefile.tinybootblock.inc

    r5102 r5103  
    44# Build the final rom image
    55
     6ifneq ($(CONFIG_UPDATE_IMAGE),y)
    67$(obj)/coreboot.pre1: $(obj)/coreboot.bootblock $(CBFSTOOL)
    78        rm -f $@
    89        $(CBFSTOOL) $@ create $(CONFIG_COREBOOT_ROMSIZE_KB)K $(obj)/coreboot.bootblock
     10else
     11$(obj)/coreboot.pre1: $(CBFSTOOL)
     12        mv $(obj)/coreboot.rom $@
     13endif
    914
    1015$(obj)/coreboot.pre: $(obj)/coreboot.romstage $(obj)/coreboot.pre1 $(CBFSTOOL)
Note: See TracChangeset for help on using the changeset viewer.