jordan.crouse@amd.com wrote:
In preparation for adding new LAR functionality - this patch consolidates creating and accessing the LAR into new code utilizing mmap which facilitates moving about within the archive.
This code also turns the bootblock path name as a constant value. It also requires that the user specify a size when the LAR is created.
Signed-off-by: Jordan crouse jordan.crouse@amd.com
This code checks whether the target file already exists and fails if this is the case.
I am not sure whether this is an intended behavior. When running "make" two times in a row, the second make fails now:
Archive file ../linuxbios.rom already exists Unable to create ../linuxbios.rom as a LAR archive. make: *** [/home/stepan/svn/LinuxBIOSv3/build/linuxbios.rom] Error 1
I fixed this in the Makefile for now by deleting the output file before creating it.