generated from gaoyang3513/SDK_RK3288
[Mod] First commit
This commit is contained in:
@ -0,0 +1,23 @@
|
||||
From b997b9e7d4744020409223afddc7299a771eb52d Mon Sep 17 00:00:00 2001
|
||||
From: Pascal de Bruijn <pmjdebruijn@pcode.nl>
|
||||
Date: Thu, 7 Nov 2019 09:55:32 +0100
|
||||
Subject: [PATCH] Don't fail on existing symlink
|
||||
|
||||
Signed-off-by: Pascal de Bruijn <p.debruijn@unilogic.nl>
|
||||
---
|
||||
Makefile | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/Makefile b/Makefile
|
||||
index 837e7f7..7c116c9 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -238,7 +238,7 @@ install: $(RUN) libs
|
||||
$(INSTALL) -d $(INST_LIBRARY)
|
||||
$(INSTALL) -m 0644 $(LIBRARIES) $(INST_LIBRARY)
|
||||
ifdef LINKED_LIB_SH
|
||||
- cd $(INST_LIBRARY) && ln -s $(notdir $(LIB_SH) $(LINKED_LIB_SH))
|
||||
+ cd $(INST_LIBRARY) && ln -sf $(notdir $(LIB_SH) $(LINKED_LIB_SH))
|
||||
endif
|
||||
$(INSTALL) -d $(INST_BINARY)
|
||||
$(INSTALL) $(RUN) $(INST_BINARY)
|
||||
12
package/libargon2/Config.in
Normal file
12
package/libargon2/Config.in
Normal file
@ -0,0 +1,12 @@
|
||||
config BR2_PACKAGE_LIBARGON2
|
||||
bool "libargon2"
|
||||
depends on BR2_USE_MMU
|
||||
depends on !BR2_STATIC_LIBS
|
||||
help
|
||||
A modern password hashing algorithm
|
||||
|
||||
https://password-hashing.net/#argon2
|
||||
|
||||
comment "libargon needs a toolchain w/ dynamic library"
|
||||
depends on BR2_USE_MMU
|
||||
depends on BR2_STATIC_LIBS
|
||||
3
package/libargon2/libargon2.hash
Normal file
3
package/libargon2/libargon2.hash
Normal file
@ -0,0 +1,3 @@
|
||||
# Locally calculated
|
||||
sha256 daf972a89577f8772602bf2eb38b6a3dd3d922bf5724d45e7f9589b5e830442c libargon2-20190702.tar.gz
|
||||
sha256 220f8736a89ff51c92ef3d497f413b48e6cf1df3d6278bc909c6308c78e1718e LICENSE
|
||||
41
package/libargon2/libargon2.mk
Normal file
41
package/libargon2/libargon2.mk
Normal file
@ -0,0 +1,41 @@
|
||||
################################################################################
|
||||
#
|
||||
# libargon2
|
||||
#
|
||||
################################################################################
|
||||
|
||||
LIBARGON2_VERSION = 20190702
|
||||
LIBARGON2_SITE = $(call github,P-H-C,phc-winner-argon2,$(LIBARGON2_VERSION))
|
||||
LIBARGON2_LICENSE = CC0-1.0 or Apache-2.0
|
||||
LIBARGON2_LICENSE_FILES = LICENSE
|
||||
LIBARGON2_INSTALL_STAGING = YES
|
||||
|
||||
LIBARGON2_OPTS = LIBRARY_REL=lib
|
||||
|
||||
# GCC_TARGET_ARCH is not defined for all architectures, but libargon2
|
||||
# only uses it to detect if some x86 optimizations can be used, and
|
||||
# GCC_TARGET_ARCH is defined on x86.
|
||||
ifneq ($(GCC_TARGET_ARCH),)
|
||||
LIBARGON2_OPTS += OPTTARGET=$(GCC_TARGET_ARCH)
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),)
|
||||
LIBARGON2_OPTS += NO_THREADS=1
|
||||
endif
|
||||
|
||||
define LIBARGON2_BUILD_CMDS
|
||||
$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) \
|
||||
$(LIBARGON2_OPTS)
|
||||
endef
|
||||
|
||||
define LIBARGON2_INSTALL_STAGING_CMDS
|
||||
$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) \
|
||||
$(LIBARGON2_OPTS) DESTDIR=$(STAGING_DIR) install
|
||||
endef
|
||||
|
||||
define LIBARGON2_INSTALL_TARGET_CMDS
|
||||
$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) \
|
||||
$(LIBARGON2_OPTS) DESTDIR=$(TARGET_DIR) install
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
Reference in New Issue
Block a user