update buildroot to 2017.02.11
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
From dc8aa43b7b6d0cead7d8a0c1a151d289a5233a10 Mon Sep 17 00:00:00 2001
|
||||
From: Eric Le Bihan <eric.le.bihan.dev@free.fr>
|
||||
Date: Wed, 2 Apr 2014 12:36:52 +0200
|
||||
Subject: [PATCH] libudev: Only use #pragma for ignoring diagnostics if GCC
|
||||
version supports it.
|
||||
|
||||
[Peter: update for 2.1.1, fix shared_assert issue]
|
||||
Signed-off-by: Eric Le Bihan <eric.le.bihan.dev@free.fr>
|
||||
---
|
||||
src/shared/macro.h | 8 +++++
|
||||
1 file changed, 8 insertions(+)
|
||||
|
||||
diff --git a/src/shared/macro.h b/src/shared/macro.h
|
||||
--- a/src/shared/macro.h
|
||||
+++ b/src/shared/macro.h
|
||||
@@ -38,6 +38,7 @@
|
||||
#define _cleanup_(x) __attribute__((cleanup(x)))
|
||||
|
||||
/* Temporarily disable some warnings */
|
||||
+#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6)
|
||||
#define DISABLE_WARNING_DECLARATION_AFTER_STATEMENT \
|
||||
_Pragma("GCC diagnostic push"); \
|
||||
_Pragma("GCC diagnostic ignored \"-Wdeclaration-after-statement\"")
|
||||
@@ -48,6 +49,13 @@
|
||||
|
||||
#define REENABLE_WARNING \
|
||||
_Pragma("GCC diagnostic pop")
|
||||
+#else
|
||||
+#define DISABLE_WARNING_DECLARATION_AFTER_STATEMENT
|
||||
+#define DISABLE_WARNING_FORMAT_NONLITERAL
|
||||
+#define REENABLE_WARNING
|
||||
+/* glibc unconditionally defines this, but it needs GCC 4.6+ */
|
||||
+#undef static_assert
|
||||
+#endif
|
||||
|
||||
#define XCONCATENATE(x, y) x ## y
|
||||
#define CONCATENATE(x, y) XCONCATENATE(x, y)
|
||||
--
|
||||
1.7.9.5
|
||||
@@ -0,0 +1,44 @@
|
||||
From c0f63850ad29ec978d070a08b816dc2bfca337e3 Mon Sep 17 00:00:00 2001
|
||||
From: Gustavo Sverzut Barbieri <barbieri@profusion.mobi>
|
||||
Date: Fri, 30 Dec 2016 11:28:41 -0200
|
||||
Subject: [PATCH] udev-builtin-input_id.c: add missing kernel header defines.
|
||||
|
||||
Add missing defines so eudev builds for older kernels such as 2.6
|
||||
|
||||
Signed-off-by: Gustavo Sverzut Barbieri <barbieri@profusion.mobi>
|
||||
---
|
||||
src/shared/missing.h | 8 ++++++++
|
||||
src/udev/udev-builtin-input_id.c | 1 +
|
||||
2 files changed, 9 insertions(+)
|
||||
|
||||
diff --git a/src/shared/missing.h b/src/shared/missing.h
|
||||
index 5ad599795..bebbb42be 100644
|
||||
--- a/src/shared/missing.h
|
||||
+++ b/src/shared/missing.h
|
||||
@@ -171,3 +171,11 @@ static inline int name_to_handle_at(int fd, const char *name, struct file_handle
|
||||
(char *)memcpy(__new, __old, __len); \
|
||||
})
|
||||
#endif
|
||||
+
|
||||
+#ifndef BTN_TRIGGER_HAPPY
|
||||
+#define BTN_TRIGGER_HAPPY 0x2c0
|
||||
+#endif
|
||||
+
|
||||
+#ifndef INPUT_PROP_MAX
|
||||
+#define INPUT_PROP_MAX 0x1f
|
||||
+#endif
|
||||
diff --git a/src/udev/udev-builtin-input_id.c b/src/udev/udev-builtin-input_id.c
|
||||
index b14190e42..ca545be5d 100644
|
||||
--- a/src/udev/udev-builtin-input_id.c
|
||||
+++ b/src/udev/udev-builtin-input_id.c
|
||||
@@ -32,6 +32,7 @@
|
||||
|
||||
#include "udev.h"
|
||||
#include "util.h"
|
||||
+#include "missing.h"
|
||||
|
||||
/* we must use this kernel-compatible implementation */
|
||||
#define BITS_PER_LONG (sizeof(unsigned long) * 8)
|
||||
--
|
||||
2.11.0
|
||||
|
||||
43
bsp/buildroot-2017.02.11/package/eudev/Config.in
Normal file
43
bsp/buildroot-2017.02.11/package/eudev/Config.in
Normal file
@@ -0,0 +1,43 @@
|
||||
config BR2_PACKAGE_EUDEV
|
||||
bool "eudev"
|
||||
depends on BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV
|
||||
depends on BR2_USE_MMU # uses fork()
|
||||
depends on BR2_USE_WCHAR # needs C99 compiler
|
||||
depends on !BR2_STATIC_LIBS # kmod
|
||||
select BR2_PACKAGE_HAS_UDEV
|
||||
select BR2_PACKAGE_UTIL_LINUX
|
||||
select BR2_PACKAGE_UTIL_LINUX_LIBBLKID
|
||||
select BR2_PACKAGE_KMOD
|
||||
help
|
||||
eudev is a fork of systemd-udev with the goal of obtaining better
|
||||
compatibility with existing software such as OpenRC and Upstart,
|
||||
older kernels, various toolchains and anything else required by
|
||||
users and various distributions.
|
||||
|
||||
https://wiki.gentoo.org/wiki/Project:Eudev
|
||||
|
||||
if BR2_PACKAGE_EUDEV
|
||||
|
||||
config BR2_PACKAGE_PROVIDES_UDEV
|
||||
default "eudev"
|
||||
|
||||
config BR2_PACKAGE_EUDEV_RULES_GEN
|
||||
bool "enable rules generator"
|
||||
help
|
||||
Enable persistent rules generator
|
||||
|
||||
config BR2_PACKAGE_EUDEV_ENABLE_HWDB
|
||||
bool "enable hwdb installation"
|
||||
default y
|
||||
help
|
||||
Enables hardware database installation to /etc/udev/hwdb.d
|
||||
|
||||
endif
|
||||
|
||||
comment "eudev needs eudev /dev management"
|
||||
depends on BR2_USE_MMU
|
||||
depends on !BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV
|
||||
|
||||
comment "eudev needs a toolchain w/ wchar, dynamic library"
|
||||
depends on BR2_USE_MMU
|
||||
depends on !BR2_USE_WCHAR || BR2_STATIC_LIBS
|
||||
50
bsp/buildroot-2017.02.11/package/eudev/S10udev
Executable file
50
bsp/buildroot-2017.02.11/package/eudev/S10udev
Executable file
@@ -0,0 +1,50 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# udev This is a minimal non-LSB version of a UDEV startup script. It
|
||||
# was derived by stripping down the udev-058 LSB version for use
|
||||
# with buildroot on embedded hardware using Linux 2.6.34+ kernels.
|
||||
#
|
||||
# You may need to customize this for your system's resource limits
|
||||
# (including startup time!) and administration. For example, if
|
||||
# your early userspace has a custom initramfs or initrd you might
|
||||
# need /dev much earlier; or without hotpluggable busses (like USB,
|
||||
# PCMCIA, MMC/SD, and so on) your /dev might be static after boot.
|
||||
#
|
||||
# This script assumes your system boots right into the eventual root
|
||||
# filesystem, and that init runs this udev script before any programs
|
||||
# needing more device nodes than the bare-bones set -- /dev/console,
|
||||
# /dev/zero, /dev/null -- that's needed to boot and run this script.
|
||||
#
|
||||
|
||||
# Check for missing binaries
|
||||
UDEV_BIN=/sbin/udevd
|
||||
test -x $UDEV_BIN || exit 5
|
||||
|
||||
# Check for config file and read it
|
||||
UDEV_CONFIG=/etc/udev/udev.conf
|
||||
test -r $UDEV_CONFIG || exit 6
|
||||
. $UDEV_CONFIG
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
printf "Populating %s using udev: " "${udev_root:-/dev}"
|
||||
printf '\000\000\000\000' > /proc/sys/kernel/hotplug
|
||||
$UDEV_BIN -d || { echo "FAIL"; exit 1; }
|
||||
udevadm trigger --type=subsystems --action=add
|
||||
udevadm trigger --type=devices --action=add
|
||||
udevadm settle --timeout=30 || echo "udevadm settle failed"
|
||||
echo "done"
|
||||
;;
|
||||
stop)
|
||||
# Stop execution of events
|
||||
udevadm control --stop-exec-queue
|
||||
killall udevd
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 {start|stop}"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
|
||||
exit 0
|
||||
4
bsp/buildroot-2017.02.11/package/eudev/eudev.hash
Normal file
4
bsp/buildroot-2017.02.11/package/eudev/eudev.hash
Normal file
@@ -0,0 +1,4 @@
|
||||
# From http://dev.gentoo.org/~blueness/eudev/
|
||||
md5 49f71f6c271ffa95b3c20d757d45c2e5 eudev-3.2.1.tar.gz
|
||||
# Locally calculated
|
||||
sha256 57e3d9e51cfefbdad431848ea0ad8ae1cde04928da42474f44bd200b12f5fe19 eudev-3.2.1.tar.gz
|
||||
59
bsp/buildroot-2017.02.11/package/eudev/eudev.mk
Normal file
59
bsp/buildroot-2017.02.11/package/eudev/eudev.mk
Normal file
@@ -0,0 +1,59 @@
|
||||
################################################################################
|
||||
#
|
||||
# eudev
|
||||
#
|
||||
################################################################################
|
||||
|
||||
EUDEV_VERSION = 3.2.1
|
||||
EUDEV_SITE = http://dev.gentoo.org/~blueness/eudev
|
||||
EUDEV_LICENSE = GPLv2+ (programs), LGPLv2.1+ (libraries)
|
||||
EUDEV_LICENSE_FILES = COPYING
|
||||
EUDEV_INSTALL_STAGING = YES
|
||||
|
||||
# mq_getattr is in librt
|
||||
EUDEV_CONF_ENV += LIBS=-lrt
|
||||
|
||||
EUDEV_CONF_OPTS = \
|
||||
--disable-manpages \
|
||||
--sbindir=/sbin \
|
||||
--libexecdir=/lib \
|
||||
--disable-introspection \
|
||||
--enable-kmod \
|
||||
--enable-blkid
|
||||
|
||||
EUDEV_DEPENDENCIES = host-gperf host-pkgconf util-linux kmod
|
||||
EUDEV_PROVIDES = udev
|
||||
|
||||
ifeq ($(BR2_ROOTFS_MERGED_USR),)
|
||||
EUDEV_CONF_OPTS += --with-rootlibdir=/lib --enable-split-usr
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_EUDEV_RULES_GEN),y)
|
||||
EUDEV_CONF_OPTS += --enable-rule-generator
|
||||
else
|
||||
EUDEV_CONF_OPTS += --disable-rule-generator
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_EUDEV_ENABLE_HWDB),y)
|
||||
EUDEV_CONF_OPTS += --enable-hwdb
|
||||
else
|
||||
EUDEV_CONF_OPTS += --disable-hwdb
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBSELINUX),y)
|
||||
EUDEV_CONF_OPTS += --enable-selinux
|
||||
EUDEV_DEPENDENCIES += libselinux
|
||||
else
|
||||
EUDEV_CONF_OPTS += --disable-selinux
|
||||
endif
|
||||
|
||||
define EUDEV_INSTALL_INIT_SYSV
|
||||
$(INSTALL) -D -m 0755 package/eudev/S10udev $(TARGET_DIR)/etc/init.d/S10udev
|
||||
endef
|
||||
|
||||
# Required by default rules for input devices
|
||||
define EUDEV_USERS
|
||||
- - input -1 * - - - Input device group
|
||||
endef
|
||||
|
||||
$(eval $(autotools-package))
|
||||
Reference in New Issue
Block a user