mirror of
https://github.com/PartialVolume/shredos.x86_64.git
synced 2026-02-28 13:32:12 +00:00
Musl does not provide a 'sys/queue.h' implementation, and this has been a problem for packages that depend on it. So lets create a package called netbsd-queue that will install a 'sys/queue.h' in the staging directory when enabled, based on the NetBSD implementation. Musl toolchain and external toolchain packages will depend on this package, so that 'sys/queue.h' will be always installed when compiling with a musl based toolchain. Tested on ARM and x86 in the following cases: - Buildroot musl toolchain. - External musl toolchain without 'sys/queue.h'. - External musl toolchain with 'sys/queue.h'. Fixes: http://autobuild.buildroot.net/results/24bad2d06ab40024dacf136bee722072d587f84e And possibly many others. Signed-off-by: Sergio Prado <sergio.prado@e-labworks.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
24 lines
649 B
Makefile
24 lines
649 B
Makefile
################################################################################
|
|
#
|
|
# netbsd-queue
|
|
#
|
|
################################################################################
|
|
|
|
NETBSD_QUEUE_VERSION = 1.70
|
|
NETBSD_QUEUE_SITE = http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/sys
|
|
NETBSD_QUEUE_SOURCE = queue.h?rev=$(NETBSD_QUEUE_VERSION)
|
|
NETBSD_QUEUE_LICENSE = BSD-3c
|
|
|
|
NETBSD_QUEUE_INSTALL_STAGING = YES
|
|
|
|
define NETBSD_QUEUE_EXTRACT_CMDS
|
|
cp $(DL_DIR)/$(NETBSD_QUEUE_SOURCE) $(@D)/queue.h
|
|
endef
|
|
|
|
define NETBSD_QUEUE_INSTALL_STAGING_CMDS
|
|
$(INSTALL) -D -m 0644 $(@D)/queue.h \
|
|
$(STAGING_DIR)/usr/include/sys/queue.h
|
|
endef
|
|
|
|
$(eval $(generic-package))
|