* [Buildroot] [PATCH 1/1] libcsv: new package
From: Thomas Petazzoni @ 2017-05-01 19:27 UTC (permalink / raw)
To: buildroot
In-Reply-To: <1493660240-45710-1-git-send-email-matthew.weber@rockwellcollins.com>
Hello,
Thanks for this contribution, see some comments below.
On Mon, 1 May 2017 12:37:20 -0500, Matt Weber wrote:
> package/Config.in | 1 +
> package/libcsv/Config.in | 10 ++++++++++
> package/libcsv/libcsv.hash | 2 ++
> package/libcsv/libcsv.mk | 15 +++++++++++++++
Please add an entry to the DEVELOPERS file.
> +LIBCSV_VERSION = 3.0.3
> +LIBCSV_SITE = http://sourceforge.net/projects/libcsv/files
> +LIBCSV_SOURCE = libcsv-$(LIBCSV_VERSION).tar.gz
Not needed, this is the default value.
> +LIBCSV_LICENSE = LGPLv2.1+
Please use the SPDX license code: LGPL-2.1+
> +LIBCSV_LICENSE_FILES = COPYING.LESSER
> +LIBCSV_INSTALL_STAGING = YES
> +
> +$(eval $(host-autotools-package))
Why are you adding a host package ? If you don't intend to use it as a
dependency for another package or don't have a good reason to have a
host package, please don't add a host variant.
Thanks!
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
^ permalink raw reply
* [Buildroot] [PATCH 0/9] fs/ext2: cleanups and improvements
From: Thomas Petazzoni @ 2017-05-01 19:18 UTC (permalink / raw)
To: buildroot
In-Reply-To: <cover.1493654310.git.yann.morin.1998@free.fr>
Hello,
On Mon, 1 May 2017 17:58:39 +0200, Yann E. MORIN wrote:
> J Evans (1):
> ext2: add help text for BR2_TARGET_ROOTFS_EXT2_BLOCKS
>
> Yann E. MORIN (8):
> package/mke2img: check nb_blocks is specified
> package/mke2img: specifying zero inodes means auto
> fs/ext2: always pass the number of inodes
> fs/ext2: always pass the label option
> fs/ext2: allow reserving zero block for root
> fs/ext2: simplify code
> package/mke2img: add option to specify block size
> fs/ext2: add option to specify block size
In general, I find this good. However, it badly conflicts with the
on-going work to move away from mke2img/genext2fs and use mkfs.ext2/3/4
instead.
For example, I believe mkfs.ext2/3/4 will automatically chose a sane
default block size depending on the filesystem size.
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
^ permalink raw reply
* [Buildroot] [PATCH] daemon: new package
From: Baruch Siach @ 2017-05-01 19:17 UTC (permalink / raw)
To: buildroot
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
---
DEVELOPERS | 1 +
package/Config.in | 1 +
package/daemon/0001-fix-musl.patch | 18 ++++++++++++++++++
package/daemon/Config.in | 7 +++++++
package/daemon/daemon.hash | 3 +++
package/daemon/daemon.mk | 20 ++++++++++++++++++++
6 files changed, 50 insertions(+)
create mode 100644 package/daemon/0001-fix-musl.patch
create mode 100644 package/daemon/Config.in
create mode 100644 package/daemon/daemon.hash
create mode 100644 package/daemon/daemon.mk
diff --git a/DEVELOPERS b/DEVELOPERS
index 8db6dc82a613..61b84309f2de 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -140,6 +140,7 @@ F: package/pulseview/
F: package/sigrok-cli/
N: Baruch Siach <baruch@tkos.co.il>
+F: package/daemon/
F: package/ebtables/
F: package/openipmi/
F: package/ti-uim/
diff --git a/package/Config.in b/package/Config.in
index 674b812d22d8..9d873f705fb1 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -1795,6 +1795,7 @@ menu "System tools"
source "package/circus/Config.in"
source "package/coreutils/Config.in"
source "package/cpuload/Config.in"
+ source "package/daemon/Config.in"
source "package/dc3dd/Config.in"
source "package/dcron/Config.in"
source "package/ddrescue/Config.in"
diff --git a/package/daemon/0001-fix-musl.patch b/package/daemon/0001-fix-musl.patch
new file mode 100644
index 000000000000..9454d72ae635
--- /dev/null
+++ b/package/daemon/0001-fix-musl.patch
@@ -0,0 +1,18 @@
+daemon: fix build with musl
+
+musl requires the ttydefaults.h to be included explicitly for CEOF.
+
+Signed-off-by: Baruch Siach <baruch@tkos.co.il>
+---
+
+diff -Nuar daemon-0.6.4-orig/daemon.c daemon-0.6.4/daemon.c
+--- daemon-0.6.4-orig/daemon.c 2010-06-12 16:37:00.000000000 +0300
++++ daemon-0.6.4/daemon.c 2017-05-01 22:02:17.721413468 +0300
+@@ -665,6 +665,7 @@
+ #ifdef _RESTORE_POSIX_SOURCE
+ #define _POSIX_SOURCE
+ #endif
++#include <sys/ttydefaults.h>
+ #include <sys/wait.h>
+ #include <sys/stat.h>
+ #include <sys/select.h>
diff --git a/package/daemon/Config.in b/package/daemon/Config.in
new file mode 100644
index 000000000000..30954e77edc7
--- /dev/null
+++ b/package/daemon/Config.in
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_DAEMON
+ bool "daemon"
+ depends on BR2_USE_MMU # fork()
+ help
+ Daemon turns other process into daemons.
+
+ http://www.libslack.org/daemon/
diff --git a/package/daemon/daemon.hash b/package/daemon/daemon.hash
new file mode 100644
index 000000000000..32308ea3f773
--- /dev/null
+++ b/package/daemon/daemon.hash
@@ -0,0 +1,3 @@
+# md5 from http://www.libslack.org/daemon/; sha256 locally calculated
+md5 6cd0a28630a29ac279bc501f39baec66 daemon-0.6.4.tar.gz
+sha256 c4b9ea4aa74d55ea618c34f1e02c080ddf368549037cb239ee60c83191035ca1 daemon-0.6.4.tar.gz
diff --git a/package/daemon/daemon.mk b/package/daemon/daemon.mk
new file mode 100644
index 000000000000..6b858ceb142d
--- /dev/null
+++ b/package/daemon/daemon.mk
@@ -0,0 +1,20 @@
+################################################################################
+#
+# daemon
+#
+################################################################################
+
+DAEMON_VERSION = 0.6.4
+DAEMON_SITE = http://libslack.org/daemon/download
+DAEMON_LICENSE = GPL-2.0+
+DAEMON_LICENSE_FILES = LICENSE
+
+define DAEMON_CONFIGURE_CMDS
+ (cd $(@D); ./config)
+endef
+
+define DAEMON_BUILD_CMDS
+ $(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D)
+endef
+
+$(eval $(generic-package))
--
2.11.0
^ permalink raw reply related
* [Buildroot] [git commit branch/2017.02.x] linux-headers: bump 3.18.x series to 3.18.51
From: Peter Korsgaard @ 2017-05-01 18:58 UTC (permalink / raw)
To: buildroot
commit: https://git.buildroot.net/buildroot/commit/?id=7ac7be5f87017c6d81f23b532054e21be11aedbd
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2017.02.x
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
---
| 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--git a/package/linux-headers/Config.in.host b/package/linux-headers/Config.in.host
index 46a889d..5c49abe 100644
--- a/package/linux-headers/Config.in.host
+++ b/package/linux-headers/Config.in.host
@@ -218,7 +218,7 @@ config BR2_DEFAULT_KERNEL_HEADERS
default "3.4.113" if BR2_KERNEL_HEADERS_3_4
default "3.10.105" if BR2_KERNEL_HEADERS_3_10
default "3.12.73" if BR2_KERNEL_HEADERS_3_12
- default "3.18.50" if BR2_KERNEL_HEADERS_3_18
+ default "3.18.51" if BR2_KERNEL_HEADERS_3_18
default "3.19.8" if BR2_KERNEL_HEADERS_3_19
default "4.0.9" if BR2_KERNEL_HEADERS_4_0
default "4.1.39" if BR2_KERNEL_HEADERS_4_1
^ permalink raw reply related
* [Buildroot] [PATCH] linux-headers: bump 4.4.x series to 4.4.65
From: Peter Korsgaard @ 2017-05-01 18:57 UTC (permalink / raw)
To: buildroot
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
---
| 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--git a/package/linux-headers/Config.in.host b/package/linux-headers/Config.in.host
index b1ef3d623..f75fac8a1 100644
--- a/package/linux-headers/Config.in.host
+++ b/package/linux-headers/Config.in.host
@@ -227,7 +227,7 @@ config BR2_DEFAULT_KERNEL_HEADERS
default "3.10.105" if BR2_KERNEL_HEADERS_3_10
default "3.12.73" if BR2_KERNEL_HEADERS_3_12
default "4.1.39" if BR2_KERNEL_HEADERS_4_1
- default "4.4.64" if BR2_KERNEL_HEADERS_4_4
+ default "4.4.65" if BR2_KERNEL_HEADERS_4_4
default "4.9.25" if BR2_KERNEL_HEADERS_4_9
default "4.10.13" if BR2_KERNEL_HEADERS_4_10
default "4.11" if BR2_KERNEL_HEADERS_4_11
--
2.11.0
^ permalink raw reply related
* [Buildroot] [PATCH v3 2/3] toolchain: add 4.11.x choice for headers
From: Peter Korsgaard @ 2017-05-01 18:55 UTC (permalink / raw)
To: buildroot
In-Reply-To: <20170501102438.9403-2-s.martin49@gmail.com>
>>>>> "Samuel" == Samuel Martin <s.martin49@gmail.com> writes:
> Signed-off-by: Samuel Martin <s.martin49@gmail.com>
Committed, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply
* [Buildroot] [PATCH v3 3/3] linux-header: bump to 4.11 kernel version
From: Peter Korsgaard @ 2017-05-01 18:54 UTC (permalink / raw)
To: buildroot
In-Reply-To: <20170501102438.9403-3-s.martin49@gmail.com>
>>>>> "Samuel" == Samuel Martin <s.martin49@gmail.com> writes:
> Signed-off-by: Samuel Martin <s.martin49@gmail.com>
> ---
> changes v1 -> v2:
> - add missing BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_11 symbol (ThomasP)
Committed, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply
* [Buildroot] [PATCH v3 1/3] board: add stm32f429-disc1 config
From: Peter Korsgaard @ 2017-05-01 18:54 UTC (permalink / raw)
To: buildroot
In-Reply-To: <20170501102438.9403-1-s.martin49@gmail.com>
>>>>> "Samuel" == Samuel Martin <s.martin49@gmail.com> writes:
> This change renders the stm32f429discovery a bit more generic and reuse most
> of its settings for the stm32f429-disc1 board.
> Cc: Waldemar Brodkorb <wbx@openadk.org>
> Cc: Davide Viti <zinosat@tiscali.it>
> Signed-off-by: Samuel Martin <s.martin49@gmail.com>
> ---
> changes v1 -> v2:
> - fix cc emails
> changes v2 -> v3:
> - remove symlink (ThomasP)
> - list supported board in readme file (ThomasP)
Committed, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply
* [Buildroot] [git commit] linux-header: bump to 4.11 kernel version
From: Peter Korsgaard @ 2017-05-01 18:54 UTC (permalink / raw)
To: buildroot
commit: https://git.buildroot.net/buildroot/commit/?id=00f367cc2a34fa067f88535ed7d25286f51c9462
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master
Signed-off-by: Samuel Martin <s.martin49@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
---
| 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
--git a/package/linux-headers/Config.in.host b/package/linux-headers/Config.in.host
index 5c67626..b1ef3d6 100644
--- a/package/linux-headers/Config.in.host
+++ b/package/linux-headers/Config.in.host
@@ -6,7 +6,7 @@ config BR2_PACKAGE_HOST_LINUX_HEADERS
choice
prompt "Kernel Headers"
default BR2_KERNEL_HEADERS_AS_KERNEL if BR2_LINUX_KERNEL
- default BR2_KERNEL_HEADERS_4_10
+ default BR2_KERNEL_HEADERS_4_11
help
Select the kernel version to get headers from.
@@ -62,6 +62,10 @@ config BR2_KERNEL_HEADERS_4_10
bool "Linux 4.10.x kernel headers"
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_10
+config BR2_KERNEL_HEADERS_4_11
+ bool "Linux 4.11.x kernel headers"
+ select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_11
+
config BR2_KERNEL_HEADERS_VERSION
bool "Manually specified Linux version"
@@ -83,6 +87,10 @@ choice
This is used to hide/show some packages that have strict
requirements on the version of kernel headers.
+config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_11
+ bool "4.11.x"
+ select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_11
+
config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_10
bool "4.10.x"
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_10
@@ -222,4 +230,5 @@ config BR2_DEFAULT_KERNEL_HEADERS
default "4.4.64" if BR2_KERNEL_HEADERS_4_4
default "4.9.25" if BR2_KERNEL_HEADERS_4_9
default "4.10.13" if BR2_KERNEL_HEADERS_4_10
+ default "4.11" if BR2_KERNEL_HEADERS_4_11
default BR2_DEFAULT_KERNEL_VERSION if BR2_KERNEL_HEADERS_VERSION
^ permalink raw reply related
* [Buildroot] [git commit] toolchain: add 4.11.x choice for headers
From: Peter Korsgaard @ 2017-05-01 18:54 UTC (permalink / raw)
To: buildroot
commit: https://git.buildroot.net/buildroot/commit/?id=a381d855053ef0a6d89cfcd59a4f990b6d41b0fa
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master
Signed-off-by: Samuel Martin <s.martin49@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
---
toolchain/toolchain-common.in | 5 +++++
.../toolchain-external/toolchain-external-custom/Config.in.options | 4 ++++
2 files changed, 9 insertions(+)
diff --git a/toolchain/toolchain-common.in b/toolchain/toolchain-common.in
index 379006d..37079fa 100644
--- a/toolchain/toolchain-common.in
+++ b/toolchain/toolchain-common.in
@@ -247,10 +247,15 @@ config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_10
bool
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_9
+config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_11
+ bool
+ select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_10
+
# This order guarantees that the highest version is set, as kconfig
# stops affecting a value on the first matching default.
config BR2_TOOLCHAIN_HEADERS_AT_LEAST
string
+ default "4.11" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_11
default "4.10" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_10
default "4.9" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_9
default "4.8" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_8
diff --git a/toolchain/toolchain-external/toolchain-external-custom/Config.in.options b/toolchain/toolchain-external/toolchain-external-custom/Config.in.options
index 668ea3d..ba5b977 100644
--- a/toolchain/toolchain-external/toolchain-external-custom/Config.in.options
+++ b/toolchain/toolchain-external/toolchain-external-custom/Config.in.options
@@ -89,6 +89,10 @@ choice
m = ( LINUX_VERSION_CODE >> 8 ) & 0xFF
p = ( LINUX_VERSION_CODE >> 0 ) & 0xFF
+config BR2_TOOLCHAIN_EXTERNAL_HEADERS_4_11
+ bool "4.11.x"
+ select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_11
+
config BR2_TOOLCHAIN_EXTERNAL_HEADERS_4_10
bool "4.10.x"
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_10
^ permalink raw reply related
* [Buildroot] [git commit] board: add stm32f429-disc1 config
From: Peter Korsgaard @ 2017-05-01 18:54 UTC (permalink / raw)
To: buildroot
commit: https://git.buildroot.net/buildroot/commit/?id=0de48480ecfa9023137ceef7ede83f517343b2a5
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master
This change renders the stm32f429discovery a bit more generic and reuse most
of its settings for the stm32f429-disc1 board.
Cc: Waldemar Brodkorb <wbx@openadk.org>
Cc: Davide Viti <zinosat@tiscali.it>
Signed-off-by: Samuel Martin <s.martin49@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
---
board/stmicroelectronics/stm32f429-disco/flash.sh | 10 ++++++++--
board/stmicroelectronics/stm32f429-disco/readme.txt | 9 ++++++++-
2 files changed, 16 insertions(+), 3 deletions(-)
diff --git a/board/stmicroelectronics/stm32f429-disco/flash.sh b/board/stmicroelectronics/stm32f429-disco/flash.sh
index ffb8fcf..7402136 100755
--- a/board/stmicroelectronics/stm32f429-disco/flash.sh
+++ b/board/stmicroelectronics/stm32f429-disco/flash.sh
@@ -1,14 +1,20 @@
#!/bin/bash
OUTPUT_DIR=$1
+BOARD_NAME=${2:-stm32f429discovery}
if ! test -d "${OUTPUT_DIR}" ; then
echo "ERROR: no output directory specified."
- echo "Usage: $0 OUTPUT_DIR"
+ echo "Usage: $0 OUTPUT_DIR BOARD_NAME"
+ echo ""
+ echo "Arguments:"
+ echo " OUTPUT_DIR The Buildroot output directory."
+ echo " BOARD_NAME One of the available boards among:"
+ echo " stm32f429discovery, stm32f429disc1"
exit 1
fi
-${OUTPUT_DIR}/host/usr/bin/openocd -f board/stm32f429discovery.cfg \
+${OUTPUT_DIR}/host/usr/bin/openocd -f board/${BOARD_NAME}.cfg \
-c "init" \
-c "reset init" \
-c "flash probe 0" \
diff --git a/board/stmicroelectronics/stm32f429-disco/readme.txt b/board/stmicroelectronics/stm32f429-disco/readme.txt
index 43a25b4..f512cb2 100644
--- a/board/stmicroelectronics/stm32f429-disco/readme.txt
+++ b/board/stmicroelectronics/stm32f429-disco/readme.txt
@@ -4,6 +4,12 @@ STM32F429 Discovery
This tutorial describes how to use the predefined Buildroot
configuration for the STM32F429 Discovery evaluation platform.
+Supported HW
+------------
+
+ - STM32F429I-DISCO evaluation board
+ - STM32F429I-DISC1 evaluation board
+
Building
--------
@@ -24,7 +30,8 @@ The UART is configured at 115200.
Flashing
--------
- ./board/stmicroelectronics/stm32f429-disco/flash.sh output/
+ ./board/stmicroelectronics/stm32f429-disco/flash.sh output/ \
+ {stm32f429discovery|stm32f429disc1}
It will flash the minimal bootloader, the Device Tree Blob, and the
kernel image which includes the root filesystem as initramfs.
^ permalink raw reply related
* [Buildroot] [PATCH 1/1] fdk-aac: bump to version 0.1.5
From: Peter Korsgaard @ 2017-05-01 18:47 UTC (permalink / raw)
To: buildroot
In-Reply-To: <1493633686-1472-1-git-send-email-gilles.talis@gmail.com>
>>>>> "Gilles" == Gilles Talis <gilles.talis@gmail.com> writes:
> Also, remove the compile flags to make it build
> with GCC6 as it was added upstream
> Signed-off-by: Gilles Talis <gilles.talis@gmail.com>
Committed, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply
* [Buildroot] [git commit] fdk-aac: bump to version 0.1.5
From: Peter Korsgaard @ 2017-05-01 18:47 UTC (permalink / raw)
To: buildroot
commit: https://git.buildroot.net/buildroot/commit/?id=833466aeecb9146da3d42aa6fe34c1e75d7f3df8
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master
Also, remove the compile flags to make it build
with GCC6 as it was added upstream
Signed-off-by: Gilles Talis <gilles.talis@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
---
package/fdk-aac/fdk-aac.hash | 2 +-
package/fdk-aac/fdk-aac.mk | 5 +----
2 files changed, 2 insertions(+), 5 deletions(-)
diff --git a/package/fdk-aac/fdk-aac.hash b/package/fdk-aac/fdk-aac.hash
index 28a1eee..cd2e868 100644
--- a/package/fdk-aac/fdk-aac.hash
+++ b/package/fdk-aac/fdk-aac.hash
@@ -1,2 +1,2 @@
# Locally computed:
-sha256 5910fe788677ca13532e3f47b7afaa01d72334d46a2d5e1d1f080f1173ff15ab fdk-aac-0.1.4.tar.gz
+sha256 2164592a67b467e5b20fdcdaf5bd4c50685199067391c6fcad4fa5521c9b4dd7 fdk-aac-0.1.5.tar.gz
diff --git a/package/fdk-aac/fdk-aac.mk b/package/fdk-aac/fdk-aac.mk
index 45a3cf5..0c9662e 100644
--- a/package/fdk-aac/fdk-aac.mk
+++ b/package/fdk-aac/fdk-aac.mk
@@ -4,14 +4,11 @@
#
################################################################################
-FDK_AAC_VERSION = 0.1.4
+FDK_AAC_VERSION = 0.1.5
FDK_AAC_SITE = http://downloads.sourceforge.net/project/opencore-amr/fdk-aac
FDK_AAC_LICENSE = fdk-aac license
FDK_AAC_LICENSE_FILES = NOTICE
FDK_AAC_INSTALL_STAGING = YES
-# Not compatible with GCC 6 which defaults to GNU++14
-FDK_AAC_CONF_ENV += CXXFLAGS="$(TARGET_CXXFLAGS) -std=gnu++98"
-
$(eval $(autotools-package))
^ permalink raw reply related
* [Buildroot] [PATCH 1/1] libcsv: new package
From: Matt Weber @ 2017-05-01 17:37 UTC (permalink / raw)
To: buildroot
From: David Graziano <david.graziano@rockwellcollins.com>
libcsv is a small, simple and fast CSV library written in pure
ANSI C89 that can read and write CSV data.
Signed-off-by: David Graziano <david.graziano@rockwellcollins.com>
Signed-off-by: Matt Weber <matthew.weber@rockwellcollins.com>
---
package/Config.in | 1 +
package/libcsv/Config.in | 10 ++++++++++
package/libcsv/libcsv.hash | 2 ++
package/libcsv/libcsv.mk | 15 +++++++++++++++
4 files changed, 28 insertions(+)
create mode 100644 package/libcsv/Config.in
create mode 100644 package/libcsv/libcsv.hash
create mode 100644 package/libcsv/libcsv.mk
diff --git a/package/Config.in b/package/Config.in
index bfcfb73..e3b6682 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -1367,6 +1367,7 @@ menu "Other"
source "package/libcofi/Config.in"
source "package/libcroco/Config.in"
source "package/libcrossguid/Config.in"
+ source "package/libcsv/Config.in"
source "package/libdaemon/Config.in"
source "package/libee/Config.in"
source "package/libev/Config.in"
diff --git a/package/libcsv/Config.in b/package/libcsv/Config.in
new file mode 100644
index 0000000..eaa6115
--- /dev/null
+++ b/package/libcsv/Config.in
@@ -0,0 +1,10 @@
+config BR2_PACKAGE_LIBCSV
+ bool "libcsv"
+ help
+ libcsv is a small, simple and fast CSV library written in pure
+ ANSI C89 that can read and write CSV data. It provides a
+ straight-forward interface using callback functions to handle
+ parsed fields and rows and can parse improperly formatted CSV
+ files.
+
+ https://sourceforge.net/projects/libcsv/
diff --git a/package/libcsv/libcsv.hash b/package/libcsv/libcsv.hash
new file mode 100644
index 0000000..e35c44f
--- /dev/null
+++ b/package/libcsv/libcsv.hash
@@ -0,0 +1,2 @@
+#locally computed
+sha256 d9c0431cb803ceb9896ce74f683e6e5a0954e96ae1d9e4028d6e0f967bebd7e4 libcsv-3.0.3.tar.gz
diff --git a/package/libcsv/libcsv.mk b/package/libcsv/libcsv.mk
new file mode 100644
index 0000000..cfb4088
--- /dev/null
+++ b/package/libcsv/libcsv.mk
@@ -0,0 +1,15 @@
+################################################################################
+#
+# libcsv
+#
+################################################################################
+
+LIBCSV_VERSION = 3.0.3
+LIBCSV_SITE = http://sourceforge.net/projects/libcsv/files
+LIBCSV_SOURCE = libcsv-$(LIBCSV_VERSION).tar.gz
+LIBCSV_LICENSE = LGPLv2.1+
+LIBCSV_LICENSE_FILES = COPYING.LESSER
+LIBCSV_INSTALL_STAGING = YES
+
+$(eval $(host-autotools-package))
+$(eval $(autotools-package))
--
1.9.1
^ permalink raw reply related
* [Buildroot] [git commit] package/p*/Config.in: fix ordering of statements
From: Thomas Petazzoni @ 2017-05-01 17:01 UTC (permalink / raw)
To: buildroot
commit: https://git.buildroot.net/buildroot/commit/?id=289137ed619e134f3f57584ecbd93ad76d7ed197
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master
The check-package script when ran gives warnings on ordering issues
on all of these Config files. This patch cleans up all warnings
related to the ordering in the Config files for packages starting with
the letter p in the package directory.
The appropriate ordering is: type, default, depends on, select, help
See http://nightly.buildroot.org/#_config_files for more information.
Signed-off-by: Adam Duskett <Adamduskett@outlook.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
package/pangomm/Config.in | 8 ++++----
package/pcmanfm/Config.in | 8 ++++----
package/php/Config.ext | 8 ++++----
package/portaudio/Config.in | 2 +-
package/powerpc-utils/Config.in | 2 +-
package/powervr/Config.in | 2 +-
package/pppd/Config.in | 2 +-
package/pulseaudio/Config.in | 2 +-
package/pulseview/Config.in | 16 ++++++++--------
package/pure-ftpd/Config.in | 2 +-
package/python-crossbar/Config.in | 2 +-
package/python-ipaddr/Config.in | 2 +-
package/python-libconfig/Config.in | 6 +++---
package/python-msgpack/Config.in | 2 +-
package/python-pylibftdi/Config.in | 2 +-
package/python-pysnmp-apps/Config.in | 2 +-
package/python-pysnmp-mibs/Config.in | 2 +-
package/python-service-identity/Config.in | 2 +-
package/python-treq/Config.in | 2 +-
package/python/Config.in | 12 ++++++------
20 files changed, 43 insertions(+), 43 deletions(-)
diff --git a/package/pangomm/Config.in b/package/pangomm/Config.in
index a7c41a0..08c6064 100644
--- a/package/pangomm/Config.in
+++ b/package/pangomm/Config.in
@@ -1,15 +1,15 @@
config BR2_PACKAGE_PANGOMM
bool "pangomm"
- select BR2_PACKAGE_CAIROMM
- select BR2_PACKAGE_GLIBMM
- select BR2_PACKAGE_PANGO
- select BR2_PACKAGE_LIBSIGC
depends on BR2_TOOLCHAIN_HAS_SYNC_4 # pango -> harfbuzz
depends on BR2_INSTALL_LIBSTDCPP # glibmm/pango
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 # C++11
depends on BR2_TOOLCHAIN_HAS_THREADS # *mm/pango -> libglib2
depends on BR2_USE_MMU # *mm/pango -> libglib2
depends on BR2_USE_WCHAR # *mm/pango -> libglib2
+ select BR2_PACKAGE_CAIROMM
+ select BR2_PACKAGE_GLIBMM
+ select BR2_PACKAGE_PANGO
+ select BR2_PACKAGE_LIBSIGC
help
The pangomm package is a set of C++ bindings for Pango.
diff --git a/package/pcmanfm/Config.in b/package/pcmanfm/Config.in
index 40ebbdf..979e747 100644
--- a/package/pcmanfm/Config.in
+++ b/package/pcmanfm/Config.in
@@ -1,15 +1,15 @@
config BR2_PACKAGE_PCMANFM
bool "pcmanfm"
- select BR2_PACKAGE_LIBFM
- select BR2_PACKAGE_MENU_CACHE
- select BR2_PACKAGE_LIBGLIB2
- select BR2_PACKAGE_LIBGTK2 if !BR2_PACKAGE_LIBGTK3_X11
depends on BR2_PACKAGE_XORG7
depends on BR2_USE_WCHAR # libglib2
depends on BR2_TOOLCHAIN_HAS_THREADS # libglib2
depends on BR2_USE_MMU # libglib2
depends on BR2_INSTALL_LIBSTDCPP # libgtk2
depends on BR2_TOOLCHAIN_HAS_SYNC_4 # libgtk2 -> pango -> harfbuzz
+ select BR2_PACKAGE_LIBFM
+ select BR2_PACKAGE_MENU_CACHE
+ select BR2_PACKAGE_LIBGLIB2
+ select BR2_PACKAGE_LIBGTK2 if !BR2_PACKAGE_LIBGTK3_X11
help
PCMan File Manager (PCManFM) is a file manager application developed
by Hong Jen Yee from Taiwan which is meant to be a replacement for
diff --git a/package/php/Config.ext b/package/php/Config.ext
index 7c3ba7e..43cc4b3 100644
--- a/package/php/Config.ext
+++ b/package/php/Config.ext
@@ -53,8 +53,8 @@ config BR2_PACKAGE_PHP_EXT_ZIP
config BR2_PACKAGE_PHP_EXT_ZLIB
bool "zlib"
- select BR2_PACKAGE_ZLIB
default y
+ select BR2_PACKAGE_ZLIB
help
zlib support
@@ -136,9 +136,9 @@ config BR2_PACKAGE_PHP_EXT_PDO_MYSQL
config BR2_PACKAGE_PHP_EXT_PDO_POSTGRESQL
bool "PostgreSQL"
- select BR2_PACKAGE_POSTGRESQL
depends on BR2_USE_MMU # postgresql
depends on !BR2_STATIC_LIBS
+ select BR2_PACKAGE_POSTGRESQL
help
PDO driver for PostgreSQL
@@ -164,8 +164,8 @@ comment "Human language and character encoding support"
config BR2_PACKAGE_PHP_EXT_GETTEXT
bool "Gettext"
- select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT
depends on BR2_USE_WCHAR
+ select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT
help
Gettext support
@@ -180,11 +180,11 @@ config BR2_PACKAGE_PHP_EXT_ICONV
config BR2_PACKAGE_PHP_EXT_INTL
bool "intl"
- select BR2_PACKAGE_ICU
depends on BR2_INSTALL_LIBSTDCPP
depends on BR2_USE_WCHAR
depends on !BR2_BINFMT_FLAT # icu
depends on BR2_TOOLCHAIN_HAS_THREADS # icu
+ select BR2_PACKAGE_ICU
help
Internationalization support
diff --git a/package/portaudio/Config.in b/package/portaudio/Config.in
index 252a92a..18e87fd 100644
--- a/package/portaudio/Config.in
+++ b/package/portaudio/Config.in
@@ -14,8 +14,8 @@ if BR2_PACKAGE_PORTAUDIO
config BR2_PACKAGE_PORTAUDIO_ALSA
bool "alsa support"
- select BR2_PACKAGE_ALSA_LIB
default y
+ select BR2_PACKAGE_ALSA_LIB
help
Compile with ALSA support.
diff --git a/package/powerpc-utils/Config.in b/package/powerpc-utils/Config.in
index fb2fb7f..b0ca847 100644
--- a/package/powerpc-utils/Config.in
+++ b/package/powerpc-utils/Config.in
@@ -16,8 +16,8 @@ if BR2_PACKAGE_POWERPC_UTILS
config BR2_PACKAGE_POWERPC_UTILS_RTAS
bool "RTAS support"
- select BR2_PACKAGE_LIBRTAS
depends on BR2_TOOLCHAIN_USES_GLIBC
+ select BR2_PACKAGE_LIBRTAS
help
Enable support for functions that require RTAS.
diff --git a/package/powervr/Config.in b/package/powervr/Config.in
index 746e15b..7be2b23 100644
--- a/package/powervr/Config.in
+++ b/package/powervr/Config.in
@@ -2,5 +2,5 @@ config BR2_PACKAGE_HAS_POWERVR
bool
config BR2_PACKAGE_PROVIDES_POWERVR
- depends on BR2_PACKAGE_HAS_POWERVR
string
+ depends on BR2_PACKAGE_HAS_POWERVR
diff --git a/package/pppd/Config.in b/package/pppd/Config.in
index b56b623..8c56421 100644
--- a/package/pppd/Config.in
+++ b/package/pppd/Config.in
@@ -11,8 +11,8 @@ config BR2_PACKAGE_PPPD
if BR2_PACKAGE_PPPD
config BR2_PACKAGE_PPPD_FILTER
- select BR2_PACKAGE_LIBPCAP
bool "filtering"
+ select BR2_PACKAGE_LIBPCAP
help
Packet filtering abilities for pppd. If enabled,
the pppd active-filter and pass-filter options
diff --git a/package/pulseaudio/Config.in b/package/pulseaudio/Config.in
index 20aa374..0adfd88 100644
--- a/package/pulseaudio/Config.in
+++ b/package/pulseaudio/Config.in
@@ -4,11 +4,11 @@ config BR2_PACKAGE_PULSEAUDIO
depends on BR2_TOOLCHAIN_HAS_THREADS
depends on !BR2_STATIC_LIBS
depends on BR2_TOOLCHAIN_HAS_SYNC_4 # json-c
+ depends on BR2_USE_MMU # fork()
select BR2_PACKAGE_LIBTOOL
select BR2_PACKAGE_JSON_C
select BR2_PACKAGE_LIBSNDFILE
select BR2_PACKAGE_SPEEX
- depends on BR2_USE_MMU # fork()
help
PulseAudio is a sound system for POSIX OSes, meaning that it
is a proxy for your sound applications. It allows you to do
diff --git a/package/pulseview/Config.in b/package/pulseview/Config.in
index 46abe78..daa0fba 100644
--- a/package/pulseview/Config.in
+++ b/package/pulseview/Config.in
@@ -1,8 +1,15 @@
config BR2_PACKAGE_PULSEVIEW
bool "pulseview"
+ depends on BR2_PACKAGE_QT5
+ # libsigrok->libglib2:
+ depends on BR2_USE_WCHAR
+ depends on BR2_TOOLCHAIN_HAS_THREADS
+ depends on BR2_USE_MMU
+ depends on BR2_INSTALL_LIBSTDCPP
+ # libsigrok
+ depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8
select BR2_PACKAGE_LIBSIGROK
select BR2_PACKAGE_LIBSIGROKCXX
- depends on BR2_PACKAGE_QT5
select BR2_PACKAGE_QT5BASE_WIDGETS
select BR2_PACKAGE_QT5BASE_PNG
select BR2_PACKAGE_QT5SVG
@@ -10,13 +17,6 @@ config BR2_PACKAGE_PULSEVIEW
select BR2_PACKAGE_BOOST_FILESYSTEM
select BR2_PACKAGE_BOOST_SYSTEM
select BR2_PACKAGE_BOOST_THREAD
- # libsigrok->libglib2:
- depends on BR2_USE_WCHAR
- depends on BR2_TOOLCHAIN_HAS_THREADS
- depends on BR2_USE_MMU
- depends on BR2_INSTALL_LIBSTDCPP
- # libsigrok
- depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8
help
PulseView is a Qt based logic analyzer, oscilloscope
and MSO GUI for sigrok.
diff --git a/package/pure-ftpd/Config.in b/package/pure-ftpd/Config.in
index 57b78d1..0e1e9c2 100644
--- a/package/pure-ftpd/Config.in
+++ b/package/pure-ftpd/Config.in
@@ -1,7 +1,7 @@
config BR2_PACKAGE_PURE_FTPD
bool "pure-ftpd"
- select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE
depends on BR2_USE_MMU # fork()
+ select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE
help
Pure-FTPd is a free (BSD), secure, production-quality and standard-
conformant FTP server. It doesn't provide useless bells and whistles,
diff --git a/package/python-crossbar/Config.in b/package/python-crossbar/Config.in
index be83325..faec922 100644
--- a/package/python-crossbar/Config.in
+++ b/package/python-crossbar/Config.in
@@ -1,5 +1,6 @@
config BR2_PACKAGE_PYTHON_CROSSBAR
bool "python-crossbar"
+ depends on BR2_INSTALL_LIBSTDCPP # python-pyasn
# All the following dependencies are runtime dependencies
select BR2_PACKAGE_PYTHON_AUTOBAHN
select BR2_PACKAGE_PYTHON_CBOR
@@ -31,7 +32,6 @@ config BR2_PACKAGE_PYTHON_CROSSBAR
select BR2_PACKAGE_PYTHON_UBJSON
select BR2_PACKAGE_PYTHON_WATCHDOG
select BR2_PACKAGE_PYTHON_WSACCEL
- depends on BR2_INSTALL_LIBSTDCPP # python-pyasn
help
Crossbar.io is an open-source WAMP application router that
allows to build advanced applications from loosely-coupled
diff --git a/package/python-ipaddr/Config.in b/package/python-ipaddr/Config.in
index 9db2dab..5727927 100644
--- a/package/python-ipaddr/Config.in
+++ b/package/python-ipaddr/Config.in
@@ -1,6 +1,6 @@
config BR2_PACKAGE_PYTHON_IPADDR
- depends on BR2_PACKAGE_PYTHON # included since python3.3
bool "python-ipaddr"
+ depends on BR2_PACKAGE_PYTHON # included since python3.3
help
An IPv4/IPv6 manipulation library in Python. This library is
used to create/poke/manipulate IPv4 and IPv6 addresses and
diff --git a/package/python-libconfig/Config.in b/package/python-libconfig/Config.in
index a222f9a..0068871 100644
--- a/package/python-libconfig/Config.in
+++ b/package/python-libconfig/Config.in
@@ -4,13 +4,13 @@ comment "python-libconfig needs a glibc or uClibc toolchain w/ C++, threads"
config BR2_PACKAGE_PYTHON_LIBCONFIG
bool "python-libconfig"
- select BR2_PACKAGE_BOOST
- select BR2_PACKAGE_BOOST_PYTHON
- select BR2_PACKAGE_LIBCONFIG
depends on BR2_INSTALL_LIBSTDCPP
depends on BR2_TOOLCHAIN_HAS_THREADS
# error: invalid use of incomplete type 'struct _IO_FILE'
depends on !BR2_TOOLCHAIN_USES_MUSL
+ select BR2_PACKAGE_BOOST
+ select BR2_PACKAGE_BOOST_PYTHON
+ select BR2_PACKAGE_LIBCONFIG
help
Python bindings to the C++ library libconfig
diff --git a/package/python-msgpack/Config.in b/package/python-msgpack/Config.in
index 7dfe8e8..9aa2b5f 100644
--- a/package/python-msgpack/Config.in
+++ b/package/python-msgpack/Config.in
@@ -1,8 +1,8 @@
config BR2_PACKAGE_PYTHON_MSGPACK
bool "python-msgpack"
- select BR2_PACKAGE_MSGPACK
depends on BR2_INSTALL_LIBSTDCPP # msgpack
depends on BR2_TOOLCHAIN_HAS_SYNC_4 # msgpack
+ select BR2_PACKAGE_MSGPACK
help
MessagePack (http://msgpack.org/) is a fast, compact binary
serialization format, suitable for similar data to JSON.
diff --git a/package/python-pylibftdi/Config.in b/package/python-pylibftdi/Config.in
index f829071..d340974 100644
--- a/package/python-pylibftdi/Config.in
+++ b/package/python-pylibftdi/Config.in
@@ -1,7 +1,7 @@
config BR2_PACKAGE_PYTHON_PYLIBFTDI
bool "python-pylibftdi"
- select BR2_PACKAGE_LIBFTDI
depends on BR2_TOOLCHAIN_HAS_THREADS # libusb
+ select BR2_PACKAGE_LIBFTDI
help
This package contains the python language binding libftdi.
diff --git a/package/python-pysnmp-apps/Config.in b/package/python-pysnmp-apps/Config.in
index b032eba..32e3269 100644
--- a/package/python-pysnmp-apps/Config.in
+++ b/package/python-pysnmp-apps/Config.in
@@ -1,7 +1,7 @@
config BR2_PACKAGE_PYTHON_PYSNMP_APPS
bool "python-pysnmp-apps"
- select BR2_PACKAGE_PYTHON_PYSNMP
depends on BR2_INSTALL_LIBSTDCPP # pysnmp -> pyasn
+ select BR2_PACKAGE_PYTHON_PYSNMP
help
A collection of command-line tools for SNMP management
purposes built on top of the PySNMP package.
diff --git a/package/python-pysnmp-mibs/Config.in b/package/python-pysnmp-mibs/Config.in
index eca17d2..521d95e 100644
--- a/package/python-pysnmp-mibs/Config.in
+++ b/package/python-pysnmp-mibs/Config.in
@@ -1,7 +1,7 @@
config BR2_PACKAGE_PYTHON_PYSNMP_MIBS
bool "python-pysnmp-mibs"
- select BR2_PACKAGE_PYTHON_PYSNMP
depends on BR2_INSTALL_LIBSTDCPP # pysnmp -> pyasn
+ select BR2_PACKAGE_PYTHON_PYSNMP
help
PySNMP MIBs is a set of IETF & IANA MIBs pre-compiled and
packaged to simplify their use with the PySNMP library.
diff --git a/package/python-service-identity/Config.in b/package/python-service-identity/Config.in
index c9cbb6c..304b38a 100644
--- a/package/python-service-identity/Config.in
+++ b/package/python-service-identity/Config.in
@@ -1,10 +1,10 @@
config BR2_PACKAGE_PYTHON_SERVICE_IDENTITY
bool "python-service-identity"
+ depends on BR2_INSTALL_LIBSTDCPP # python-pyopenssl, python-pyasn
select BR2_PACKAGE_PYTHON_CHARACTERISTIC # runtime
select BR2_PACKAGE_PYTHON_PYASN # runtime
select BR2_PACKAGE_PYTHON_PYASN_MODULES # runtime
select BR2_PACKAGE_PYTHON_PYOPENSSL # runtime
- depends on BR2_INSTALL_LIBSTDCPP # python-pyopenssl, python-pyasn
help
Service identity verification for pyOpenSSL.
diff --git a/package/python-treq/Config.in b/package/python-treq/Config.in
index 4a23737..2047cc0 100644
--- a/package/python-treq/Config.in
+++ b/package/python-treq/Config.in
@@ -1,11 +1,11 @@
config BR2_PACKAGE_PYTHON_TREQ
bool "python-treq"
+ depends on BR2_INSTALL_LIBSTDCPP # python-pyopenssl
select BR2_PACKAGE_PYTHON_REQUESTS # runtime
select BR2_PACKAGE_PYTHON_SERVICE_IDENTITY # runtime
select BR2_PACKAGE_PYTHON_SIX # runtime
select BR2_PACKAGE_PYTHON_TWISTED # runtime
select BR2_PACKAGE_PYTHON_PYOPENSSL # runtime
- depends on BR2_INSTALL_LIBSTDCPP # python-pyopenssl
help
treq is an HTTP library inspired by requests but written on
top of Twisted's Agents. It provides a simple, higher level
diff --git a/package/python/Config.in b/package/python/Config.in
index fa83e77..054ccd2 100644
--- a/package/python/Config.in
+++ b/package/python/Config.in
@@ -39,14 +39,14 @@ menu "core python modules"
comment "The following modules are unusual or require extra libraries"
config BR2_PACKAGE_PYTHON_BZIP2
- select BR2_PACKAGE_BZIP2
bool "bzip2 module"
+ select BR2_PACKAGE_BZIP2
help
bzip2 module for Python
config BR2_PACKAGE_PYTHON_BSDDB
- select BR2_PACKAGE_BERKELEYDB
bool "bsddb module"
+ select BR2_PACKAGE_BERKELEYDB
help
bsddb module for Python.
@@ -56,8 +56,8 @@ config BR2_PACKAGE_PYTHON_CODECSCJK
Chinese/Japanese/Korean codecs module for Python (large).
config BR2_PACKAGE_PYTHON_CURSES
- select BR2_PACKAGE_NCURSES
bool "curses module"
+ select BR2_PACKAGE_NCURSES
help
curses module for Python.
@@ -67,15 +67,15 @@ config BR2_PACKAGE_PYTHON_OSSAUDIODEV
ossaudiodev module for Python.
config BR2_PACKAGE_PYTHON_READLINE
- select BR2_PACKAGE_READLINE
bool "readline"
+ select BR2_PACKAGE_READLINE
help
readline module for Python (required for command-line
editing in the Python shell).
config BR2_PACKAGE_PYTHON_SSL
- select BR2_PACKAGE_OPENSSL
bool "ssl"
+ select BR2_PACKAGE_OPENSSL
help
_ssl module for Python (required for https in urllib etc).
@@ -110,8 +110,8 @@ config BR2_PACKAGE_PYTHON_SQLITE
SQLite database support
config BR2_PACKAGE_PYTHON_PYEXPAT
- select BR2_PACKAGE_EXPAT
bool "xml module"
+ select BR2_PACKAGE_EXPAT
help
pyexpat and xml libraries for Python
^ permalink raw reply related
* [Buildroot] [git commit] package/o*/Config.in: fix ordering of statements
From: Thomas Petazzoni @ 2017-05-01 16:57 UTC (permalink / raw)
To: buildroot
commit: https://git.buildroot.net/buildroot/commit/?id=3483a98d01b319053bc1956aca25c658846c4ab5
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master
The check-package script when ran gives warnings on ordering issues
on all of these Config files. This patch cleans up all warnings
related to the ordering in the Config files for packages starting with
the letter o in the package directory.
The appropriate ordering is: type, default, depends on, select, help
See http://nightly.buildroot.org/#_config_files for more information.
Signed-off-by: Adam Duskett <Adamduskett@outlook.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
package/odroid-mali/Config.in | 4 ++--
package/on2-8170-libs/Config.in | 2 +-
package/opencv/Config.in | 4 ++--
package/opencv3/Config.in | 2 +-
package/opengl/libegl/Config.in | 2 +-
package/opengl/libgl/Config.in | 2 +-
package/opengl/libgles/Config.in | 2 +-
package/opengl/libopenmax/Config.in | 2 +-
package/opengl/libopenvg/Config.in | 2 +-
package/openocd/Config.in | 32 ++++++++++++++++----------------
package/openpowerlink/Config.in | 2 +-
package/openvmtools/Config.in | 2 +-
package/opkg/Config.in | 2 +-
package/oprofile/Config.in | 6 +++---
14 files changed, 33 insertions(+), 33 deletions(-)
diff --git a/package/odroid-mali/Config.in b/package/odroid-mali/Config.in
index e5c07f2..1c31c2d 100644
--- a/package/odroid-mali/Config.in
+++ b/package/odroid-mali/Config.in
@@ -1,10 +1,10 @@
config BR2_PACKAGE_ODROID_MALI
bool "odroid-mali"
+ depends on BR2_TOOLCHAIN_USES_GLIBC
+ depends on BR2_aarch64 || BR2_ARM_EABIHF
select BR2_PACKAGE_HAS_LIBEGL
select BR2_PACKAGE_HAS_LIBGLES
select BR2_PACKAGE_ODROID_SCRIPTS # runtime
- depends on BR2_TOOLCHAIN_USES_GLIBC
- depends on BR2_aarch64 || BR2_ARM_EABIHF
help
Install the ARM Mali drivers for odroidc2 based systems.
diff --git a/package/on2-8170-libs/Config.in b/package/on2-8170-libs/Config.in
index 40cad3d..2a60c58 100644
--- a/package/on2-8170-libs/Config.in
+++ b/package/on2-8170-libs/Config.in
@@ -1,10 +1,10 @@
config BR2_PACKAGE_ON2_8170_LIBS
+ bool "on2-8170-libs"
#This is a binary only package which has been compiled for glibc
depends on BR2_arm926t
depends on BR2_TOOLCHAIN_USES_GLIBC
depends on BR2_LINUX_KERNEL # on2-8170-modules
select BR2_PACKAGE_ON2_8170_MODULES # runtime
- bool "on2-8170-libs"
help
Libraries for Hantro X170 video decoder
diff --git a/package/opencv/Config.in b/package/opencv/Config.in
index c046baa..0260851 100644
--- a/package/opencv/Config.in
+++ b/package/opencv/Config.in
@@ -1,9 +1,9 @@
menuconfig BR2_PACKAGE_OPENCV
bool "opencv-2.4"
- select BR2_PACKAGE_ZLIB
depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL
depends on BR2_INSTALL_LIBSTDCPP
depends on BR2_USE_WCHAR
+ select BR2_PACKAGE_ZLIB
help
OpenCV (Open Source Computer Vision) is a library of programming
functions for real time computer vision.
@@ -52,13 +52,13 @@ config BR2_PACKAGE_OPENCV_LIB_FLANN
config BR2_PACKAGE_OPENCV_LIB_GPU
bool "gpu"
depends on !BR2_TOOLCHAIN_HAS_BINUTILS_BUG_19405 # opencv libphoto
+ depends on !BR2_STATIC_LIBS
select BR2_PACKAGE_OPENCV_LIB_CALIB3D
select BR2_PACKAGE_OPENCV_LIB_IMGPROC
select BR2_PACKAGE_OPENCV_LIB_LEGACY
select BR2_PACKAGE_OPENCV_LIB_OBJDETECT
select BR2_PACKAGE_OPENCV_LIB_PHOTO
select BR2_PACKAGE_OPENCV_LIB_VIDEO
- depends on !BR2_STATIC_LIBS
help
Include opencv_gpu module into the OpenCV build.
diff --git a/package/opencv3/Config.in b/package/opencv3/Config.in
index ee589f9..3b0a9d6 100644
--- a/package/opencv3/Config.in
+++ b/package/opencv3/Config.in
@@ -1,12 +1,12 @@
menuconfig BR2_PACKAGE_OPENCV3
bool "opencv3"
- select BR2_PACKAGE_ZLIB
depends on BR2_TOOLCHAIN_HAS_ATOMIC
depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL
depends on BR2_INSTALL_LIBSTDCPP
depends on BR2_USE_WCHAR
depends on !BR2_STATIC_LIBS # include dlfcn.h
depends on !BR2_PACKAGE_OPENCV
+ select BR2_PACKAGE_ZLIB
help
OpenCV (Open Source Computer Vision) is a library of programming
functions for real time computer vision.
diff --git a/package/opengl/libegl/Config.in b/package/opengl/libegl/Config.in
index f756fbe..a236998 100644
--- a/package/opengl/libegl/Config.in
+++ b/package/opengl/libegl/Config.in
@@ -6,5 +6,5 @@ config BR2_PACKAGE_HAS_LIBEGL_WAYLAND
depends on BR2_PACKAGE_HAS_LIBEGL
config BR2_PACKAGE_PROVIDES_LIBEGL
- depends on BR2_PACKAGE_HAS_LIBEGL
string
+ depends on BR2_PACKAGE_HAS_LIBEGL
diff --git a/package/opengl/libgl/Config.in b/package/opengl/libgl/Config.in
index 8b99e5b..b9a1602 100644
--- a/package/opengl/libgl/Config.in
+++ b/package/opengl/libgl/Config.in
@@ -2,5 +2,5 @@ config BR2_PACKAGE_HAS_LIBGL
bool
config BR2_PACKAGE_PROVIDES_LIBGL
- depends on BR2_PACKAGE_HAS_LIBGL
string
+ depends on BR2_PACKAGE_HAS_LIBGL
diff --git a/package/opengl/libgles/Config.in b/package/opengl/libgles/Config.in
index b7b800f..090ef16 100644
--- a/package/opengl/libgles/Config.in
+++ b/package/opengl/libgles/Config.in
@@ -2,5 +2,5 @@ config BR2_PACKAGE_HAS_LIBGLES
bool
config BR2_PACKAGE_PROVIDES_LIBGLES
- depends on BR2_PACKAGE_HAS_LIBGLES
string
+ depends on BR2_PACKAGE_HAS_LIBGLES
diff --git a/package/opengl/libopenmax/Config.in b/package/opengl/libopenmax/Config.in
index d50f2ce..901426a 100644
--- a/package/opengl/libopenmax/Config.in
+++ b/package/opengl/libopenmax/Config.in
@@ -2,5 +2,5 @@ config BR2_PACKAGE_HAS_LIBOPENMAX
bool
config BR2_PACKAGE_PROVIDES_LIBOPENMAX
- depends on BR2_PACKAGE_HAS_LIBOPENMAX
string
+ depends on BR2_PACKAGE_HAS_LIBOPENMAX
diff --git a/package/opengl/libopenvg/Config.in b/package/opengl/libopenvg/Config.in
index 53cde6a..37d9410 100644
--- a/package/opengl/libopenvg/Config.in
+++ b/package/opengl/libopenvg/Config.in
@@ -2,5 +2,5 @@ config BR2_PACKAGE_HAS_LIBOPENVG
bool
config BR2_PACKAGE_PROVIDES_LIBOPENVG
- depends on BR2_PACKAGE_HAS_LIBOPENVG
string
+ depends on BR2_PACKAGE_HAS_LIBOPENVG
diff --git a/package/openocd/Config.in b/package/openocd/Config.in
index 41c2fc5..6cba7a0 100644
--- a/package/openocd/Config.in
+++ b/package/openocd/Config.in
@@ -11,109 +11,109 @@ comment "Adapters"
config BR2_PACKAGE_OPENOCD_FTDI
bool "MPSSE mode of FTDI based devices"
- select BR2_PACKAGE_LIBUSB
depends on BR2_TOOLCHAIN_HAS_THREADS # libusb
+ select BR2_PACKAGE_LIBUSB
help
Enable building support for the MPSSE mode of FTDI
(FT2xxx/FT4xxx) based devices (default is auto)
config BR2_PACKAGE_OPENOCD_STLINK
bool "ST-Link JTAG Programmer"
- select BR2_PACKAGE_LIBUSB
depends on BR2_TOOLCHAIN_HAS_THREADS # libusb
+ select BR2_PACKAGE_LIBUSB
help
Enable building support for the ST-Link JTAG
Programmer (default is auto)
config BR2_PACKAGE_OPENOCD_TI_ICDI
bool "TI ICDI JTAG Programmer"
- select BR2_PACKAGE_LIBUSB
depends on BR2_TOOLCHAIN_HAS_THREADS # libusb
+ select BR2_PACKAGE_LIBUSB
help
Enable building support for the TI ICDI JTAG
Programmer (default is auto)
config BR2_PACKAGE_OPENOCD_ULINK
bool "Keil ULINK JTAG Programmer"
- select BR2_PACKAGE_LIBUSB
depends on BR2_TOOLCHAIN_HAS_THREADS # libusb
+ select BR2_PACKAGE_LIBUSB
help
Enable building support for the Keil ULINK JTAG
Programmer (default is auto)
config BR2_PACKAGE_OPENOCD_UBLASTER2
bool "Altera USB-Blaster II Compatible"
- select BR2_PACKAGE_LIBUSB
depends on BR2_TOOLCHAIN_HAS_THREADS # libusb
+ select BR2_PACKAGE_LIBUSB
help
Enable building support for the Altera USB-Blaster
II Compatible (default is auto)
config BR2_PACKAGE_OPENOCD_JLINK
bool "Segger J-Link JTAG Programmer"
- select BR2_PACKAGE_LIBUSB
depends on BR2_TOOLCHAIN_HAS_THREADS # libusb
+ select BR2_PACKAGE_LIBUSB
help
Segger J-Link JTAG Programmer and clone such as Atmel
SAM-ICE
config BR2_PACKAGE_OPENOCD_OSDBM
bool "OSDBM JTAG (only) Programmer"
- select BR2_PACKAGE_LIBUSB
depends on BR2_TOOLCHAIN_HAS_THREADS # libusb
+ select BR2_PACKAGE_LIBUSB
help
Enable building support for the OSBDM (JTAG only)
Programmer (default is auto)
config BR2_PACKAGE_OPENOCD_OPENDOUS
bool "eStick/opendous JTAG Programmer"
- select BR2_PACKAGE_LIBUSB
depends on BR2_TOOLCHAIN_HAS_THREADS # libusb
+ select BR2_PACKAGE_LIBUSB
help
Enable building support for the eStick/opendous JTAG
Programmer (default is auto)
config BR2_PACKAGE_OPENOCD_AICE
bool "Andes JTAG Programmer"
- select BR2_PACKAGE_LIBUSB
depends on BR2_USE_MMU # use fork()
depends on BR2_TOOLCHAIN_HAS_THREADS # libusb
+ select BR2_PACKAGE_LIBUSB
help
Enable building support for the Andes JTAG
Programmer (default is auto)
config BR2_PACKAGE_OPENOCD_VSLLINK
bool "Versaloon-Link JTAG Programmer"
+ depends on BR2_TOOLCHAIN_HAS_THREADS # libusb-compat -> libusb
select BR2_PACKAGE_LIBUSB
select BR2_PACKAGE_LIBUSB_COMPAT
- depends on BR2_TOOLCHAIN_HAS_THREADS # libusb-compat -> libusb
help
Enable building support for the Versaloon-Link JTAG
Programmer (default is auto)
config BR2_PACKAGE_OPENOCD_USBPROG
bool "USBProg JTAG Programmer"
+ depends on BR2_TOOLCHAIN_HAS_THREADS # libusb-compat -> libusb
select BR2_PACKAGE_LIBUSB
select BR2_PACKAGE_LIBUSB_COMPAT
- depends on BR2_TOOLCHAIN_HAS_THREADS # libusb-compat -> libusb
help
Enable building support for the USBProg JTAG
Programmer (default is auto)
config BR2_PACKAGE_OPENOCD_RLINK
bool "Raisonance RLink JTAG Programmer"
+ depends on BR2_TOOLCHAIN_HAS_THREADS # libusb-compat -> libusb
select BR2_PACKAGE_LIBUSB
select BR2_PACKAGE_LIBUSB_COMPAT
- depends on BR2_TOOLCHAIN_HAS_THREADS # libusb-compat -> libusb
help
Enable building support for the Raisonance RLink
JTAG Programmer (default is auto)
config BR2_PACKAGE_OPENOCD_ARMEW
bool "Olimex ARM-JTAG-EW Programmer"
+ depends on BR2_TOOLCHAIN_HAS_THREADS # libusb-compat -> libusb
select BR2_PACKAGE_LIBUSB
select BR2_PACKAGE_LIBUSB_COMPAT
- depends on BR2_TOOLCHAIN_HAS_THREADS # libusb-compat -> libusb
help
Enable building support for the Olimex ARM-JTAG-EW
Programmer (default is auto)
@@ -130,8 +130,8 @@ config BR2_PACKAGE_OPENOCD_VPI
config BR2_PACKAGE_OPENOCD_UBLASTER
bool "Altera USB-Blaster"
- select BR2_PACKAGE_LIBFTDI1
depends on BR2_TOOLCHAIN_HAS_THREADS # libftdi -> libusb
+ select BR2_PACKAGE_LIBFTDI1
help
Enable building support for the Altera USB-Blaster
using the libftdi driver, opensource alternate of
@@ -170,18 +170,18 @@ config BR2_PACKAGE_OPENOCD_GW16012
config BR2_PACKAGE_OPENOCD_PRESTO
bool "ASIX Presto Programmer"
- select BR2_PACKAGE_LIBFTDI1
depends on BR2_TOOLCHAIN_HAS_THREADS # libftdi -> libusb
+ select BR2_PACKAGE_LIBFTDI1
help
Enable building support for ASIX Presto Programmer
using the libftdi driver
config BR2_PACKAGE_OPENOCD_OPENJTAG
bool "OpenJTAG Programmer"
+ depends on BR2_TOOLCHAIN_HAS_THREADS # libftdi -> libusb
select BR2_PACKAGE_LIBFTDI1
select BR2_PACKAGE_LIBUSB
select BR2_PACKAGE_LIBUSB_COMPAT # needs usb.h
- depends on BR2_TOOLCHAIN_HAS_THREADS # libftdi -> libusb
help
Enable building support for the OpenJTAG Programmer
with ftdi driver
diff --git a/package/openpowerlink/Config.in b/package/openpowerlink/Config.in
index d5e9764..68ea751 100644
--- a/package/openpowerlink/Config.in
+++ b/package/openpowerlink/Config.in
@@ -110,8 +110,8 @@ endmenu
endif # BR2_PACKAGE_OPENPOWERLINK_STACK_KERNEL_STACK_LIB
config BR2_PACKAGE_OPENPOWERLINK_KERNEL_PCIE_DRIVER
- depends on BR2_PACKAGE_OPENPOWERLINK_STACK_KERNEL_PCIE_STACK_LIB
bool "PCIe Powerlink Driver"
+ depends on BR2_PACKAGE_OPENPOWERLINK_STACK_KERNEL_PCIE_STACK_LIB
menu "demos"
diff --git a/package/openvmtools/Config.in b/package/openvmtools/Config.in
index 79c503c..f76bdf2 100644
--- a/package/openvmtools/Config.in
+++ b/package/openvmtools/Config.in
@@ -33,11 +33,11 @@ comment "procps support needs BR2_PACKAGE_BUSYBOX_SHOW_OTHERS"
config BR2_PACKAGE_OPENVMTOOLS_PAM
bool "PAM support"
- select BR2_PACKAGE_LINUX_PAM
# linux-pam needs locale and wchar, but we already have this
# dependency on the main symbol, above.
depends on !BR2_STATIC_LIBS
depends on !BR2_TOOLCHAIN_USES_MUSL # linux-pam
+ select BR2_PACKAGE_LINUX_PAM
help
Support for PAM in openvmtools
diff --git a/package/opkg/Config.in b/package/opkg/Config.in
index 5a4bbc2..a188a7b 100644
--- a/package/opkg/Config.in
+++ b/package/opkg/Config.in
@@ -4,9 +4,9 @@ comment "opkg needs a toolchain w/ wchar"
config BR2_PACKAGE_OPKG
bool "opkg"
- select BR2_PACKAGE_LIBARCHIVE
depends on BR2_USE_MMU # fork()
depends on BR2_USE_WCHAR # libarchive
+ select BR2_PACKAGE_LIBARCHIVE
help
Opkg is a lightweight package management system, based on ipkg. It is
written in C and resembles apt/dpkg in operation. It is intended for
diff --git a/package/oprofile/Config.in b/package/oprofile/Config.in
index e2adde5..d99a7e6 100644
--- a/package/oprofile/Config.in
+++ b/package/oprofile/Config.in
@@ -15,14 +15,14 @@ config BR2_PACKAGE_OPROFILE_NEEDS_LIBPFM4
config BR2_PACKAGE_OPROFILE
bool "oprofile"
depends on BR2_USE_MMU # fork()
- select BR2_PACKAGE_POPT
- select BR2_PACKAGE_BINUTILS
- select BR2_PACKAGE_LIBPFM4 if BR2_PACKAGE_OPROFILE_NEEDS_LIBPFM4
depends on BR2_INSTALL_LIBSTDCPP
depends on BR2_USE_WCHAR # binutils
depends on BR2_PACKAGE_OPROFILE_ARCH_SUPPORTS
# libpfm4 is needed on PowerPC, and requires thread support
depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL || !BR2_PACKAGE_OPROFILE_NEEDS_LIBPFM4
+ select BR2_PACKAGE_POPT
+ select BR2_PACKAGE_BINUTILS
+ select BR2_PACKAGE_LIBPFM4 if BR2_PACKAGE_OPROFILE_NEEDS_LIBPFM4
help
OProfile is a system-wide profiler for Linux systems,
capable of profiling all running code at low overhead.
^ permalink raw reply related
* [Buildroot] [PATCH 9/9] fs/ext2: add option to specify block size
From: Yann E. MORIN @ 2017-05-01 15:58 UTC (permalink / raw)
To: buildroot
In-Reply-To: <cover.1493654310.git.yann.morin.1998@free.fr>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
fs/ext2/Config.in | 28 ++++++++++++++++++++++++++--
fs/ext2/ext2.mk | 2 +-
2 files changed, 27 insertions(+), 3 deletions(-)
diff --git a/fs/ext2/Config.in b/fs/ext2/Config.in
index 09ec87786f..627294e17f 100644
--- a/fs/ext2/Config.in
+++ b/fs/ext2/Config.in
@@ -44,12 +44,36 @@ config BR2_TARGET_ROOTFS_EXT2_REV
config BR2_TARGET_ROOTFS_EXT2_LABEL
string "filesystem label"
-# 61440 = 60MB, i.e usually small enough to fit on a 64MB media
+choice
+ bool "block size"
+ help
+ The size, in bytes, of a block.
+
+config BR2_TARGET_ROOTFS_EXT2_BLOCK_1024
+ bool "1024"
+
+config BR2_TARGET_ROOTFS_EXT2_BLOCK_2048
+ bool "2048"
+
+config BR2_TARGET_ROOTFS_EXT2_BLOCK_4096
+ bool "4096"
+
+endchoice
+
+config BR2_TARGET_ROOTFS_EXT2_BLOCK_SIZE
+ int
+ default 1024 if BR2_TARGET_ROOTFS_EXT2_BLOCK_1024
+ default 2048 if BR2_TARGET_ROOTFS_EXT2_BLOCK_2048
+ default 4096 if BR2_TARGET_ROOTFS_EXT2_BLOCK_4096
+
+# 61440 block od 1024 bytes = 60MB, i.e usually small enough to fit
+# on a 64MB media
config BR2_TARGET_ROOTFS_EXT2_BLOCKS
int "exact size in blocks"
default 61440
help
- Specify the file system size as a number of 1024-byte blocks.
+ Specify the file system size as a number of blocks, which
+ size is specified above.
config BR2_TARGET_ROOTFS_EXT2_INODES
int "exact number of inodes (leave at 0 for auto calculation)"
diff --git a/fs/ext2/ext2.mk b/fs/ext2/ext2.mk
index 0d5fc7f118..ec49caa3a5 100644
--- a/fs/ext2/ext2.mk
+++ b/fs/ext2/ext2.mk
@@ -12,7 +12,7 @@ EXT2_LABEL := $(subst ",,$(BR2_TARGET_ROOTFS_EXT2_LABEL))
EXT2_OPTS = \
-G $(BR2_TARGET_ROOTFS_EXT2_GEN) \
-R $(BR2_TARGET_ROOTFS_EXT2_REV) \
- -B 1024 \
+ -B $(BR2_TARGET_ROOTFS_EXT2_BLOCK_SIZE) \
-b $(BR2_TARGET_ROOTFS_EXT2_BLOCKS) \
-i $(BR2_TARGET_ROOTFS_EXT2_INODES) \
-I $(BR2_TARGET_ROOTFS_EXT2_EXTRA_INODES) \
--
2.11.0
^ permalink raw reply related
* [Buildroot] [PATCH 8/9] package/mke2img: add option to specify block size
From: Yann E. MORIN @ 2017-05-01 15:58 UTC (permalink / raw)
To: buildroot
In-Reply-To: <cover.1493654310.git.yann.morin.1998@free.fr>
ext filesystems can use a block size of 1024, 2048, or 4096 bytes, the
former being interesting to store small files, while the latter being
more intersting to store bigger files.
So far, we were using the defualt, which was to use a 1024-byte block.
Continue doing so (for now...).
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
fs/ext2/ext2.mk | 1 +
package/mke2img/mke2img | 10 ++++++++--
2 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/fs/ext2/ext2.mk b/fs/ext2/ext2.mk
index 16e14777c3..0d5fc7f118 100644
--- a/fs/ext2/ext2.mk
+++ b/fs/ext2/ext2.mk
@@ -12,6 +12,7 @@ EXT2_LABEL := $(subst ",,$(BR2_TARGET_ROOTFS_EXT2_LABEL))
EXT2_OPTS = \
-G $(BR2_TARGET_ROOTFS_EXT2_GEN) \
-R $(BR2_TARGET_ROOTFS_EXT2_REV) \
+ -B 1024 \
-b $(BR2_TARGET_ROOTFS_EXT2_BLOCKS) \
-i $(BR2_TARGET_ROOTFS_EXT2_INODES) \
-I $(BR2_TARGET_ROOTFS_EXT2_EXTRA_INODES) \
diff --git a/package/mke2img/mke2img b/package/mke2img/mke2img
index 266df483aa..399012a2be 100755
--- a/package/mke2img/mke2img
+++ b/package/mke2img/mke2img
@@ -19,9 +19,10 @@ main() {
rev=1
nb_extra_inodes=0
- while getopts :hb:i:I:r:d:o:G:R:l:u: OPT; do
+ while getopts :hB:b:i:I:r:d:o:G:R:l:u: OPT; do
case "${OPT}" in
h) help; exit 0;;
+ B) block_size="${OPTARG}";;
b) nb_blocks=${OPTARG};;
i) nb_inodes=${OPTARG};;
I) nb_extra_inodes=${OPTARG};;
@@ -47,6 +48,11 @@ main() {
if [ -z "${nb_blocks}" ]; then
error "you must specify the size of the output image with '-b'\n"
fi
+ case "${block_size}" in
+ 1024|2048|4096) ;; # Sole valid values
+ '') error "you must specify the size of a block with -B\n";;
+ *) error "invalid block size '%s' (valid: 1024. 2048, 4096)\n" "${block_size}";;
+ esac
case "${gen}:${rev}" in
2:0|2:1|3:1|4:1)
;;
@@ -91,7 +97,7 @@ main() {
fi
# Generate the filesystem
- genext2fs_opts=( -z -b ${nb_blocks} -N ${nb_inodes} -d "${root_dir}" )
+ genext2fs_opts=( -z -B ${block_size} -b ${nb_blocks} -N ${nb_inodes} -d "${root_dir}" )
if [ -n "${nb_res_blocks}" ]; then
genext2fs_opts+=( -m ${nb_res_blocks} )
fi
--
2.11.0
^ permalink raw reply related
* [Buildroot] [PATCH 7/9] fs/ext2: simplify code
From: Yann E. MORIN @ 2017-05-01 15:58 UTC (permalink / raw)
To: buildroot
In-Reply-To: <cover.1493654310.git.yann.morin.1998@free.fr>
No option is conditional anymore, so just collate them into a single
assignment.
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
fs/ext2/ext2.mk | 19 ++++++++-----------
1 file changed, 8 insertions(+), 11 deletions(-)
diff --git a/fs/ext2/ext2.mk b/fs/ext2/ext2.mk
index 57058b5fd2..16e14777c3 100644
--- a/fs/ext2/ext2.mk
+++ b/fs/ext2/ext2.mk
@@ -4,22 +4,19 @@
#
################################################################################
-EXT2_OPTS = -G $(BR2_TARGET_ROOTFS_EXT2_GEN) -R $(BR2_TARGET_ROOTFS_EXT2_REV)
-
-EXT2_OPTS += -b $(BR2_TARGET_ROOTFS_EXT2_BLOCKS)
-
-EXT2_OPTS += -i $(BR2_TARGET_ROOTFS_EXT2_INODES)
-
-EXT2_OPTS += -I $(BR2_TARGET_ROOTFS_EXT2_EXTRA_INODES)
-
-EXT2_OPTS += -r $(BR2_TARGET_ROOTFS_EXT2_RESBLKS)
-
# qstrip results in stripping consecutive spaces into a single one. So the
# variable is not qstrip-ed to preserve the integrity of the string value.
EXT2_LABEL := $(subst ",,$(BR2_TARGET_ROOTFS_EXT2_LABEL))
#" Syntax highlighting... :-/ )
-EXT2_OPTS += -l "$(EXT2_LABEL)"
+EXT2_OPTS = \
+ -G $(BR2_TARGET_ROOTFS_EXT2_GEN) \
+ -R $(BR2_TARGET_ROOTFS_EXT2_REV) \
+ -b $(BR2_TARGET_ROOTFS_EXT2_BLOCKS) \
+ -i $(BR2_TARGET_ROOTFS_EXT2_INODES) \
+ -I $(BR2_TARGET_ROOTFS_EXT2_EXTRA_INODES) \
+ -r $(BR2_TARGET_ROOTFS_EXT2_RESBLKS) \
+ -l "$(EXT2_LABEL)"
ROOTFS_EXT2_DEPENDENCIES = host-mke2img
--
2.11.0
^ permalink raw reply related
* [Buildroot] [PATCH 6/9] fs/ext2: allow reserving zero block for root
From: Yann E. MORIN @ 2017-05-01 15:58 UTC (permalink / raw)
To: buildroot
In-Reply-To: <cover.1493654310.git.yann.morin.1998@free.fr>
The previous default, zero, just meant "use the default value of the
filesystem generator", which happened to be 5% (the traditional value
for all ext-creating tools we've ever seen).
So, change the new default accordingly to 5%.
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
fs/ext2/Config.in | 7 ++++++-
fs/ext2/ext2.mk | 2 --
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/fs/ext2/Config.in b/fs/ext2/Config.in
index a1e3647a14..09ec87786f 100644
--- a/fs/ext2/Config.in
+++ b/fs/ext2/Config.in
@@ -65,7 +65,12 @@ config BR2_TARGET_ROOTFS_EXT2_EXTRA_INODES
config BR2_TARGET_ROOTFS_EXT2_RESBLKS
int "reserved blocks percentage"
- default 0
+ default 5
+ help
+ The number of blocks on the filesystem (as a percentage of the
+ total number of blocksi), that are reserved for use by root.
+ Traditionally, this has been 5%, and all ext-related tools still
+ default to reserving 5% when creating a nez ext filesystem.
choice
prompt "Compression method"
diff --git a/fs/ext2/ext2.mk b/fs/ext2/ext2.mk
index 6a35b33117..57058b5fd2 100644
--- a/fs/ext2/ext2.mk
+++ b/fs/ext2/ext2.mk
@@ -12,9 +12,7 @@ EXT2_OPTS += -i $(BR2_TARGET_ROOTFS_EXT2_INODES)
EXT2_OPTS += -I $(BR2_TARGET_ROOTFS_EXT2_EXTRA_INODES)
-ifneq ($(strip $(BR2_TARGET_ROOTFS_EXT2_RESBLKS)),0)
EXT2_OPTS += -r $(BR2_TARGET_ROOTFS_EXT2_RESBLKS)
-endif
# qstrip results in stripping consecutive spaces into a single one. So the
# variable is not qstrip-ed to preserve the integrity of the string value.
--
2.11.0
^ permalink raw reply related
* [Buildroot] [PATCH 5/9] fs/ext2: always pass the label option
From: Yann E. MORIN @ 2017-05-01 15:58 UTC (permalink / raw)
To: buildroot
In-Reply-To: <cover.1493654310.git.yann.morin.1998@free.fr>
... since passing an empty string is equivalent to not setting a label.
And fix the syntax highlighting in some editors...
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
fs/ext2/ext2.mk | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/fs/ext2/ext2.mk b/fs/ext2/ext2.mk
index 3fc12d7499..6a35b33117 100644
--- a/fs/ext2/ext2.mk
+++ b/fs/ext2/ext2.mk
@@ -19,9 +19,9 @@ endif
# qstrip results in stripping consecutive spaces into a single one. So the
# variable is not qstrip-ed to preserve the integrity of the string value.
EXT2_LABEL := $(subst ",,$(BR2_TARGET_ROOTFS_EXT2_LABEL))
-ifneq ($(EXT2_LABEL),)
+#" Syntax highlighting... :-/ )
+
EXT2_OPTS += -l "$(EXT2_LABEL)"
-endif
ROOTFS_EXT2_DEPENDENCIES = host-mke2img
--
2.11.0
^ permalink raw reply related
* [Buildroot] [PATCH 4/9] fs/ext2: always pass the number of inodes
From: Yann E. MORIN @ 2017-05-01 15:58 UTC (permalink / raw)
To: buildroot
In-Reply-To: <cover.1493654310.git.yann.morin.1998@free.fr>
... since zero also means auto for the mke2img script, now.
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
fs/ext2/ext2.mk | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/fs/ext2/ext2.mk b/fs/ext2/ext2.mk
index 9d3e8fd666..3fc12d7499 100644
--- a/fs/ext2/ext2.mk
+++ b/fs/ext2/ext2.mk
@@ -8,9 +8,8 @@ EXT2_OPTS = -G $(BR2_TARGET_ROOTFS_EXT2_GEN) -R $(BR2_TARGET_ROOTFS_EXT2_REV)
EXT2_OPTS += -b $(BR2_TARGET_ROOTFS_EXT2_BLOCKS)
-ifneq ($(strip $(BR2_TARGET_ROOTFS_EXT2_INODES)),0)
EXT2_OPTS += -i $(BR2_TARGET_ROOTFS_EXT2_INODES)
-endif
+
EXT2_OPTS += -I $(BR2_TARGET_ROOTFS_EXT2_EXTRA_INODES)
ifneq ($(strip $(BR2_TARGET_ROOTFS_EXT2_RESBLKS)),0)
--
2.11.0
^ permalink raw reply related
* [Buildroot] [PATCH 0/9] fs/ext2: cleanups and improvements
From: Yann E. MORIN @ 2017-05-01 15:58 UTC (permalink / raw)
To: buildroot
Hello All!
This series brings in some cleanups about our ext2 filesystem handling,
and a few enhancements, of which the ability to reserve 0 block for root,
and set the block size.
Regards,
Yann E. MORIN.
The following changes since commit 5f14d0363248e8de253b7611e66b67eba45ce959
package/m*/Config.in: fix ordering of statements (2017-05-01 11:56:18 +0200)
are available in the git repository at:
git://git.buildroot.org/~ymorin/git/buildroot.git
for you to fetch changes up to c85507a4104956f6597a910e729118309f3ff432
fs/ext2: add option to specify block size (2017-05-01 17:31:44 +0200)
----------------------------------------------------------------
J Evans (1):
ext2: add help text for BR2_TARGET_ROOTFS_EXT2_BLOCKS
Yann E. MORIN (8):
package/mke2img: check nb_blocks is specified
package/mke2img: specifying zero inodes means auto
fs/ext2: always pass the number of inodes
fs/ext2: always pass the label option
fs/ext2: allow reserving zero block for root
fs/ext2: simplify code
package/mke2img: add option to specify block size
fs/ext2: add option to specify block size
fs/ext2/Config.in | 35 +++++++++++++++++++++++++++++++++--
fs/ext2/ext2.mk | 27 +++++++++++----------------
package/mke2img/mke2img | 15 ++++++++++++---
3 files changed, 56 insertions(+), 21 deletions(-)
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
^ permalink raw reply
* [Buildroot] [PATCH 3/9] package/mke2img: specifying zero inodes means auto
From: Yann E. MORIN @ 2017-05-01 15:58 UTC (permalink / raw)
To: buildroot
In-Reply-To: <cover.1493654310.git.yann.morin.1998@free.fr>
Currently, leaving the number of inodes to be autocalculated requires
the user to not specify the -i option at all.
Also accept zero as meaning auto; this will help simplify the ext2.mk
code a little bit.
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
package/mke2img/mke2img | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/package/mke2img/mke2img b/package/mke2img/mke2img
index 758b6dee68..266df483aa 100755
--- a/package/mke2img/mke2img
+++ b/package/mke2img/mke2img
@@ -59,7 +59,7 @@ main() {
esac
# calculate needed inodes
- if [ -z "${nb_inodes}" ]; then
+ if [ ${nb_inodes:-0} -eq 0 ]; then
nb_inodes=$(find "${root_dir}" | wc -l)
nb_inodes=$((nb_inodes+400))
fi
--
2.11.0
^ permalink raw reply related
* [Buildroot] [PATCH 2/9] package/mke2img: check nb_blocks is specified
From: Yann E. MORIN @ 2017-05-01 15:58 UTC (permalink / raw)
To: buildroot
In-Reply-To: <cover.1493654310.git.yann.morin.1998@free.fr>
Since we do not have autocalculation anymore, the user must specify the
exact number of blocks.
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
package/mke2img/mke2img | 3 +++
1 file changed, 3 insertions(+)
diff --git a/package/mke2img/mke2img b/package/mke2img/mke2img
index b773aa99db..758b6dee68 100755
--- a/package/mke2img/mke2img
+++ b/package/mke2img/mke2img
@@ -44,6 +44,9 @@ main() {
if [ -z "${image}" ]; then
error "you must specify an output image file with '-o'\n"
fi
+ if [ -z "${nb_blocks}" ]; then
+ error "you must specify the size of the output image with '-b'\n"
+ fi
case "${gen}:${rev}" in
2:0|2:1|3:1|4:1)
;;
--
2.11.0
^ permalink raw reply related
page: next (older) | prev (newer) | latest
- recent:[subjects (threaded)|topics (new)|topics (active)]
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox