Update buidlroot to version 2016.08.1
This commit is contained in:
2
bsp/buildroot/package/musl-compat-headers/Config.in
Normal file
2
bsp/buildroot/package/musl-compat-headers/Config.in
Normal file
@@ -0,0 +1,2 @@
|
||||
config BR2_PACKAGE_MUSL_COMPAT_HEADERS
|
||||
bool
|
||||
51
bsp/buildroot/package/musl-compat-headers/cdefs.h
Normal file
51
bsp/buildroot/package/musl-compat-headers/cdefs.h
Normal file
@@ -0,0 +1,51 @@
|
||||
/* Copyright (C) 2016 Yann E. MORIN <yann.morin.1998@free.fr>
|
||||
*
|
||||
* This file is in the Public Domain.
|
||||
*
|
||||
* For jurisdictions in which the Public Domain does not exist
|
||||
* or it is not otherwise applicable, this file is licensed CC0
|
||||
* (Creative Commons Zero).
|
||||
*/
|
||||
|
||||
/* This file contains definitions for non-standard macros defined by
|
||||
* glibc, but quite commonly used in packages.
|
||||
*
|
||||
* Because they are non-standard, musl does not define those macros.
|
||||
* It does not provide cdefs.h either.
|
||||
*
|
||||
* This file is a compatibility header written from scratch, to be
|
||||
* installed when the C library is musl.
|
||||
*
|
||||
* Not all macros from the glibc's cdefs.h are available, only the
|
||||
* most commonly used ones.
|
||||
*
|
||||
* Please refer to the glibc documentation and source code for
|
||||
* explanations about those macros.
|
||||
*/
|
||||
|
||||
#ifndef BUILDROOT_SYS_CDEFS_H
|
||||
#define BUILDROOT_SYS_CDEFS_H
|
||||
|
||||
/* Function prototypes. */
|
||||
#undef __P
|
||||
#define __P(arg) arg
|
||||
|
||||
/* C declarations in C++ mode. */
|
||||
#ifdef __cplusplus
|
||||
# define __BEGIN_DECLS extern "C" {
|
||||
# define __END_DECLS }
|
||||
#else
|
||||
# define __BEGIN_DECLS
|
||||
# define __END_DECLS
|
||||
#endif
|
||||
|
||||
/* Don't throw exceptions in C functions. */
|
||||
#ifndef __cplusplus
|
||||
# define __THROW __attribute__ ((__nothrow__))
|
||||
# define __NTH(f) __attribute__ ((__nothrow__)) f
|
||||
#else
|
||||
# define __THROW
|
||||
# define __NTH(f) f
|
||||
#endif
|
||||
|
||||
#endif /* ifndef BUILDROOT_SYS_CDEFS_H */
|
||||
@@ -0,0 +1,2 @@
|
||||
# Locally calculated
|
||||
sha256 c13407edd0e33be73cae72514cb234f8612e1c0e54401c9448daffd3a240158b queue.h?rev=1.70
|
||||
@@ -0,0 +1,34 @@
|
||||
################################################################################
|
||||
#
|
||||
# musl-compat-headers
|
||||
#
|
||||
################################################################################
|
||||
|
||||
# No main site, just using extra downloads
|
||||
MUSL_COMPAT_HEADERS_QUEUE_H = http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/sys/queue.h?rev=1.70
|
||||
|
||||
MUSL_COMPAT_HEADERS_EXTRA_DOWNLOADS = $(MUSL_COMPAT_HEADERS_QUEUE_H)
|
||||
|
||||
MUSL_COMPAT_HEADERS_LICENSE = BSD-3c, Public Domain or CC0
|
||||
MUSL_COMPAT_HEADERS_LICENSE_FILES = queue.h cdefs.h
|
||||
|
||||
MUSL_COMPAT_HEADERS_ADD_TOOLCHAIN_DEPENDENCY = NO
|
||||
|
||||
# Only installs headers
|
||||
MUSL_COMPAT_HEADERS_INSTALL_TARGET = NO
|
||||
MUSL_COMPAT_HEADERS_INSTALL_STAGING = YES
|
||||
|
||||
# Copying both headers so legal-info finds them (they are _LICENSE_FILES)
|
||||
define MUSL_COMPAT_HEADERS_EXTRACT_CMDS
|
||||
$(INSTALL) -m 0644 -D $(DL_DIR)/$(notdir $(MUSL_COMPAT_HEADERS_QUEUE_H)) $(@D)/queue.h
|
||||
$(INSTALL) -m 0644 -D $(MUSL_COMPAT_HEADERS_PKGDIR)/cdefs.h $(@D)/cdefs.h
|
||||
endef
|
||||
|
||||
define MUSL_COMPAT_HEADERS_INSTALL_STAGING_CMDS
|
||||
$(INSTALL) -D -m 0644 $(@D)/queue.h \
|
||||
$(STAGING_DIR)/usr/include/sys/queue.h
|
||||
$(INSTALL) -D -m 0644 $(@D)/cdefs.h \
|
||||
$(STAGING_DIR)/usr/include/sys/cdefs.h
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
Reference in New Issue
Block a user