* [Buildroot] [PATCH v1] package/bcm2835: bump version to 1.65
@ 2020-06-02 20:49 Peter Seiderer
2020-06-02 21:33 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: Peter Seiderer @ 2020-06-02 20:49 UTC (permalink / raw)
To: buildroot
- disable doxygen documentation gneration using ac_cv_prog_DOXYGEN
- add optional libcap dependency and enable BCM2835_HAVE_LIBCAP
feature
Changes since 1.63:
- 1.64 2020-04-11 Fixed error in definitions of BCM2835_AUX_SPI_STAT_TX_LVL
and BCM2835_AUX_SPI_STAT_RX_LVL
- 1.65, 1.66 2020-04-16 Added support for use of capability cap_sys_rawio
to determine if access to /dev/mem is available for non-root users
Signed-off-by: Peter Seiderer <ps.report@gmx.net>
---
package/bcm2835/bcm2835.hash | 2 +-
package/bcm2835/bcm2835.mk | 10 +++++++++-
2 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/package/bcm2835/bcm2835.hash b/package/bcm2835/bcm2835.hash
index c722a97456..8317e10256 100644
--- a/package/bcm2835/bcm2835.hash
+++ b/package/bcm2835/bcm2835.hash
@@ -1,3 +1,3 @@
# Locally computed:
-sha256 aec4b33ed9ecda4a1c4c12b8ed2abdd13cf87f352f0d27a24be726d11f1fbf54 bcm2835-1.63.tar.gz
+sha256 62955cc8506cc6506d729da3138442beb9763f1ffd536e925aeb0dc223492874 bcm2835-1.65.tar.gz
sha256 8b1ba204bb69a0ade2bfcf65ef294a920f6bb361b317dba43c7ef29d96332b9b COPYING
diff --git a/package/bcm2835/bcm2835.mk b/package/bcm2835/bcm2835.mk
index d43dd7e574..c3c684f6e4 100644
--- a/package/bcm2835/bcm2835.mk
+++ b/package/bcm2835/bcm2835.mk
@@ -4,10 +4,18 @@
#
################################################################################
-BCM2835_VERSION = 1.63
+BCM2835_VERSION = 1.65
BCM2835_SITE = http://www.airspayce.com/mikem/bcm2835
BCM2835_LICENSE = GPL-3.0
BCM2835_LICENSE_FILES = COPYING
BCM2835_INSTALL_STAGING = YES
+# disable doxygen doc generation
+BCM2835_CONF_ENV = ac_cv_prog_DOXYGEN=/bin/true
+
+ifeq ($(BR2_PACKAGE_LIBCAP),y)
+BCM2835_DEPENDENCIES = libcap
+BCM2835_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -DBCM2835_HAVE_LIBCAP"
+endif
+
$(eval $(autotools-package))
--
2.26.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH v1] package/bcm2835: bump version to 1.65
2020-06-02 20:49 [Buildroot] [PATCH v1] package/bcm2835: bump version to 1.65 Peter Seiderer
@ 2020-06-02 21:33 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2020-06-02 21:33 UTC (permalink / raw)
To: buildroot
Hello Peter,
On Tue, 2 Jun 2020 22:49:41 +0200
Peter Seiderer <ps.report@gmx.net> wrote:
> - disable doxygen documentation gneration using ac_cv_prog_DOXYGEN
Is this related to the version bump? Or would the existing 1.63 version
be potentially affected by a doxygen build issue? If that's the case,
we want a separate patch which fixes this, so that we can backport.
> +ifeq ($(BR2_PACKAGE_LIBCAP),y)
> +BCM2835_DEPENDENCIES = libcap
> +BCM2835_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -DBCM2835_HAVE_LIBCAP"
So, this again illustrates how wonderful the RPi ecosystem is.
(1) They don't use configure.ac to check for libcap, even though they
already have all the autotools machinery in place to do that.
(2) They ask to define BCM2835_HAVE_LIBCAP manually, but then look at
the code:
#ifdef BCM2835_HAVE_LIBCAP
#include <sys/capability.h>
static int bcm2835_has_capability(cap_value_t capability)
{
int ok = 0;
cap_t cap = cap_get_proc();
if (cap)
{
cap_flag_value_t value;
if (cap_get_flag(cap,capability,CAP_EFFECTIVE,&value) == 0 && value == CAP_SET)
ok = 1;
cap_free(cap);
}
return ok;
}
#endif
So far, so good: if BCM2835_HAVE_LIBCAP is defined, a new function
bcm2835_has_capability() is implemented.
Then, let's continue to the only place where this function is used:
#ifdef BCM2835_HAVE_LIBCAP2
|| bcm2835_has_capability(CAP_SYS_RAWIO)
#endif
It is under a different BCM2835_HAVE_LIBCAP2 define. I don't even see
how this can work. Has someone really tested this?
I'm sorry, but this new libcap dependency feels like a joke :-)
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-06-02 21:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-02 20:49 [Buildroot] [PATCH v1] package/bcm2835: bump version to 1.65 Peter Seiderer
2020-06-02 21:33 ` Thomas Petazzoni
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.