M7350v1_en_gpl

This commit is contained in:
T
2024-09-09 08:52:07 +00:00
commit f9cc65cfda
65988 changed files with 26357421 additions and 0 deletions

View File

@ -0,0 +1,9 @@
libmincrypt.a: rsa.o sha.o
$(AR) $(ARFLAGS) $@ $^
rsa.o: rsa.c include/mincrypt/rsa.h
$(CC) $(INCLUDES) -I./include $(CFLAGS) -c $<
sha.o: sha.c include/mincrypt/sha.h
$(CC) $(INCLUDES) -I./include $(CFLAGS) -c $<

View File

@ -0,0 +1,30 @@
inherit native
PR = "r0"
MY_PN = "mincrypt"
MY_LPN = "libmincrypt"
DESCRIPTION = "Minimalistic encryption library from Android"
LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://NOTICE;md5=c19179f3430fd533888100ab6616e114"
HOMEPAGE = "http://android.git.kernel.org/?p=platform/system/core.git"
# Handle do_fetch ourselves... The automated tools don't work nicely with this...
do_fetch () {
install -d ${S}/include
cp -rf ${WORKSPACE}/system/core/${MY_LPN}/* ${S}
cp -rf ${WORKSPACE}/system/core/include/${MY_PN} ${S}/include
cp -f ${THISDIR}/files/makefile ${S}
}
EXTRA_OEMAKE = "INCLUDES='-I./include'"
do_install() {
install -d ${D}${includedir}/${MY_PN} ${D}${libdir}/${MY_PN}
install include/${MY_PN}/*.h ${D}${includedir}/${MY_PN}
install ${MY_LPN}.a ${D}${libdir}/${MY_PN}
}
NATIVE_INSTALL_WORKS = "1"