mirror of
https://github.com/corda/corda.git
synced 2025-01-17 02:09:50 +00:00
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:
parent
cd1a01800e
commit
a1e9315fa2
@ -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
|
||||
|
4
makefile
4
makefile
@ -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)
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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);
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user