fix LZMA/bootimage build

This includes some tweaks to README.md and makefile to ensure the
directions in the former for building a bootimage actually work.
This commit is contained in:
Joel Dice 2014-07-28 09:19:39 -06:00
parent cd1a01800e
commit a1e9315fa2
6 changed files with 9 additions and 9 deletions

View File

@ -710,7 +710,7 @@ using the OpenJDK library.)
__6.__ Build the boot and code images.
$ ../build/linux-i386-bootimage/bootimage-generator
$ ../build/linux-i386-bootimage/bootimage-generator \
-cp stage2 \
-bootimage bootimage-bin.o \
-codeimage codeimage-bin.o

View File

@ -1479,11 +1479,11 @@ test-args = $(test-flags) $(input)
ifneq ($(supports_avian_executable),false)
build: $(static-library) $(executable) $(dynamic-library) $(lzma-loader) \
$(lzma-encoder) $(executable-dynamic) $(classpath-dep) $(test-dep) \
$(test-extra-dep) $(embed)
$(test-extra-dep) $(embed) $(build)/classpath.jar
else
build: $(static-library) $(dynamic-library) $(lzma-loader) \
$(lzma-encoder) $(classpath-dep) $(test-dep) \
$(test-extra-dep) $(embed)
$(test-extra-dep) $(embed) $(build)/classpath.jar
endif
$(test-dep): $(classpath-dep)

View File

@ -22,14 +22,14 @@ const unsigned Padding = 16;
class LzmaAllocator {
public:
LzmaAllocator(avian::util::Allocator* a) : a(a)
LzmaAllocator(avian::util::Alloc* a) : a(a)
{
allocator.Alloc = allocate;
allocator.Free = free;
}
ISzAlloc allocator;
avian::util::Allocator* a;
avian::util::Alloc* a;
static void* allocate(void* allocator, size_t size)
{

View File

@ -22,13 +22,13 @@ class AllocOnly;
namespace vm {
uint8_t* decodeLZMA(System* s,
avian::util::AllocOnly* a,
avian::util::Alloc* a,
uint8_t* in,
unsigned inSize,
unsigned* outSize);
uint8_t* encodeLZMA(System* s,
avian::util::AllocOnly* a,
avian::util::Alloc* a,
uint8_t* in,
unsigned inSize,
unsigned* outSize);

View File

@ -27,7 +27,7 @@ int32_t read4(const uint8_t* in)
namespace vm {
uint8_t* decodeLZMA(System* s,
avian::util::AllocOnly* a,
avian::util::Alloc* a,
uint8_t* in,
unsigned inSize,
unsigned* outSize)

View File

@ -25,7 +25,7 @@ SRes myProgress(void*, UInt64, UInt64)
namespace vm {
uint8_t* encodeLZMA(System* s,
AllocOnly* a,
avian::util::Alloc* a,
uint8_t* in,
unsigned inSize,
unsigned* outSize)