Bump buidlroot version to 2018.02.6
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
From 097c5d9248f4afd34c73de5aba01a143ef784257 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Stefan=20S=C3=B8rensen?= <stefan.sorensen@spectralink.com>
|
||||
Date: Tue, 14 Mar 2017 09:23:51 +0100
|
||||
Subject: [PATCH] Allow adding options to CFLAGS and LDFLAGS variables
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
This also removes a number of hard-coded CFLAGS, leaving it up to the
|
||||
user to pass appropriate optimization/hardening flags.
|
||||
|
||||
Signed-off-by: Stefan Sørensen <stefan.sorensen@spectralink.com>
|
||||
---
|
||||
Makefile | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/Makefile b/Makefile
|
||||
index 7022a4a..3098a9a 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -5,8 +5,8 @@ MAKE_DIR ?= install -d
|
||||
INSTALL_DATA ?= install
|
||||
|
||||
CC?=gcc
|
||||
-CFLAGS?=-O2 -Wall -g -D_FORTIFY_SOURCE=2 -fstack-protector -fPIC
|
||||
-LDFLAGS?=-Wl,-z,now -Wl,-z,relro -Wl,-soname,libscrypt.so.0 -Wl,--version-script=libscrypt.version
|
||||
+override CFLAGS+=-fPIC
|
||||
+override LDFLAGS+=-Wl,-z,now -Wl,-z,relro -Wl,-soname,libscrypt.so.0 -Wl,--version-script=libscrypt.version
|
||||
CFLAGS_EXTRA?=-Wl,-rpath=.
|
||||
|
||||
all: reference
|
||||
--
|
||||
2.7.4
|
||||
|
||||
12
bsp/buildroot/package/libscrypt/Config.in
Normal file
12
bsp/buildroot/package/libscrypt/Config.in
Normal file
@@ -0,0 +1,12 @@
|
||||
config BR2_PACKAGE_LIBSCRYPT
|
||||
bool "libscrypt"
|
||||
# Unconditionally builds a shared library
|
||||
depends on !BR2_STATIC_LIBS
|
||||
help
|
||||
This is a library that implements the secure password
|
||||
hashing function "scrypt".
|
||||
|
||||
http://www.lolware.net/libscrypt.html
|
||||
|
||||
comment "libscrypt needs a toolchain w/ dynamic library"
|
||||
depends on BR2_STATIC_LIBS
|
||||
2
bsp/buildroot/package/libscrypt/libscrypt.hash
Normal file
2
bsp/buildroot/package/libscrypt/libscrypt.hash
Normal file
@@ -0,0 +1,2 @@
|
||||
# Locally calculated
|
||||
sha256 68e377e79745c10d489b759b970e52d819dbb80dd8ca61f8c975185df3f457d3 libscrypt-v1.21.tar.gz
|
||||
27
bsp/buildroot/package/libscrypt/libscrypt.mk
Normal file
27
bsp/buildroot/package/libscrypt/libscrypt.mk
Normal file
@@ -0,0 +1,27 @@
|
||||
################################################################################
|
||||
#
|
||||
# libscrypt
|
||||
#
|
||||
################################################################################
|
||||
|
||||
LIBSCRYPT_VERSION = v1.21
|
||||
LIBSCRYPT_SITE = $(call github,technion,libscrypt,$(LIBSCRYPT_VERSION))
|
||||
LIBSCRYPT_LICENSE = BSD-2-Clause
|
||||
LIBSCRYPT_LICENSE_FILES = LICENSE
|
||||
LIBSCRYPT_INSTALL_STAGING = YES
|
||||
|
||||
define LIBSCRYPT_BUILD_CMDS
|
||||
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) $(TARGET_CONFIGURE_OPTS)
|
||||
endef
|
||||
|
||||
define LIBSCRYPT_INSTALL_STAGING_CMDS
|
||||
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) PREFIX=/usr \
|
||||
DESTDIR=$(STAGING_DIR) install
|
||||
endef
|
||||
|
||||
define LIBSCRYPT_INSTALL_TARGET_CMDS
|
||||
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) PREFIX=/usr \
|
||||
DESTDIR=$(TARGET_DIR) install
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
Reference in New Issue
Block a user