mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-05-18 18:24:27 +00:00
Android tools offer filsystem tools for creating sparse images, so package them in package of its own. This recipe is re-worked and not a straight import from meta-shr. It's built from AOSP source. I've dropped the ubuntu-ism which will never be upstreamed. The intent is to be closer to the upstream AOSP source code and be able to update the recipe regularly. Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
30 lines
814 B
Makefile
30 lines
814 B
Makefile
# Makefile for mkbootimg
|
|
|
|
SRCDIR ?= $(S)
|
|
|
|
VPATH += $(SRCDIR)/system/core/mkbootimg
|
|
mkbootimg_SRC_FILES += mkbootimg.c
|
|
mkbootimg_OBJS := $(mkbootimg_SRC_FILES:.c=.o)
|
|
|
|
VPATH += $(SRCDIR)/system/core/libmincrypt
|
|
libmincrypt_SRC_FILES := dsa_sig.c p256.c p256_ec.c p256_ecdsa.c rsa.c sha.c sha256.c
|
|
libmincrypt_OBJS := $(libmincrypt_SRC_FILES:.c=.o)
|
|
|
|
CFLAGS += -DANDROID
|
|
CFLAGS += -I$(SRCDIR)/system/core/mkbootimg
|
|
CFLAGS += -I$(SRCDIR)/system/core/include
|
|
CFLAGS += -include $(SRCDIR)/build/core/combo/include/arch/$(android_arch)/AndroidConfig.h
|
|
|
|
LIBS += libmincrypt.a
|
|
|
|
all: mkbootimg
|
|
|
|
mkbootimg: libmincrypt.a $(mkbootimg_OBJS)
|
|
$(CC) -o $@ $(LDFLAGS) $(mkbootimg_OBJS) $(LIBS)
|
|
|
|
libmincrypt.a: $(libmincrypt_OBJS)
|
|
$(AR) rcs $@ $(libmincrypt_OBJS)
|
|
|
|
clean:
|
|
$(RM) $(mkbootimg_OBJS) $(libmincrypt_OBJS) mkbootimg *.a
|