Miscellaneous patch series
cover Miscellaneous patch series
This series of patches have a number of different fixes
First one adds option to set the timezone in the default target skeleton
Second one allows gdbserver to be copied from an external toolchain, comments o$
The Qt patches allow compilation for X11, add back Qt Commercial support, all t$
PATCH 1/9 Allow timezone to be set in configuration
This adds a config option for the timezone which the user can configure for their needs
--- fs/skeleton/etc/TZ | 2 +- target/generic/Config.in | 6 ++++++ target/generic/Makefile.in | 5 +++++ 3 files changed, 12 insertions(+), 1 deletions(-)
fs/skeleton/etc/TZ +1 -1
@@ -1 +1 @@ -MST7MDT +MST7MDT # GENERIC_TIMEZONE
target/generic/Config.in +6 -0
@@ -127,6 +127,12 @@ config BR2_TARGET_GENERIC_REMOUNT_ROOTFS_RW read-only. If unsure, say Y. +config BR2_TARGET_GENERIC_TIMEZONE + string "Timezone configured in /etc/TZ" + default "MST7MDT" + help + Specify the configured timezone. + endif # BR2_ROOTFS_SKELETON_DEFAULT config BR2_ROOTFS_POST_BUILD_SCRIPT
target/generic/Makefile.in +5 -0
@@ -2,6 +2,7 @@ TARGET_GENERIC_HOSTNAME:=$(call qstrip,$(BR2_TARGET_GENERIC_HOSTNAME)) TARGET_GENERIC_ISSUE:=$(call qstrip,$(BR2_TARGET_GENERIC_ISSUE)) TARGET_GENERIC_GETTY:=$(call qstrip,$(BR2_TARGET_GENERIC_GETTY_PORT)) TARGET_GENERIC_GETTY_BAUDRATE:=$(call qstrip,$(BR2_TARGET_GENERIC_GETTY_BAUDRATE)) +TARGET_GENERIC_TIMEZONE:=$(call qstrip,$(BR2_TARGET_GENERIC_TIMEZONE)) target-generic-hostname: mkdir -p $(TARGET_DIR)/etc
@@ -31,6 +32,9 @@ target-generic-do-remount-rw: target-generic-dont-remount-rw: $(SED) '/^[^#].*# REMOUNT_ROOTFS_RW$$/s~^~#~' $(TARGET_DIR)/etc/inittab +target_generic_timezone: + $(SED) '/# GENERIC_TIMEZONE$$/s~^.*#~$(TARGET_GENERIC_TIMEZONE) #~' $(TARGET_DIR)/etc/TZ + ifneq ($(TARGET_GENERIC_HOSTNAME),) TARGETS += target-generic-hostname endif
@@ -50,4 +54,5 @@ TARGETS += target-generic-do-remount-rw else TARGETS += target-generic-dont-remount-rw endif +TARGETS += target_generic_timezone endif
Signature · 1 line
1.7.2.5
PATCH 1/9 Allow timezone to be set in configuration
target/generic/Makefile.in target-generic-do-remount-rw: · line 37
Quoted 3 lines · Will Wagner
target/generic/Makefile.in +3
-0+target_generic_timezone: + $(SED) '/# GENERIC_TIMEZONE$$/s~^.*#~$(TARGET_GENERIC_TIMEZONE) #~' $(TARGET_DIR)/etc/TZ +
Why not just create the file here? I.e.
echo $(TARGET_GENERIC_TIMEZONE) > $(TARGET_DIR)/etc/TZ
Perhaps even move it out of the SKELETON_DEFAULT condition.
Regards,
Arnout
Signature · 9 lines
Arnout Vandecappelle arnout at mind be Senior Embedded Software Architect +32-16-286540 Essensium/Mind http://www.mind.be G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle GPG fingerprint: 31BB CF53 8660 6F88 345D 54CC A836 5879 20D7 CF43 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20111015/10eb0c59/attachment.html>
PATCH 1/9 Allow timezone to be set in configuration
Le Sat, 15 Oct 2011 11:51:42 +0200,
Arnout Vandecappelle <[email protected]> a ?crit :
Quoted 5 lines
Why not just create the file here? I.e.
echo $(TARGET_GENERIC_TIMEZONE) > $(TARGET_DIR)/etc/TZPerhaps even move it out of the
SKELETON_DEFAULTcondition.
Agreed.
However, it would be good to mention in the config option help text that this only works with uClibc. I don't ask to do it in this patch (because it's a lot more work), but it would be great to make this works for glibc as well (where it's not /etc/TZ, but /etc/timezone, with a different syntax).
Regards,
Thomas
Signature · 4 lines
Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com
PATCH 1/9 Allow timezone to be set in configuration
[In a private e-mail, Will indicated to me that he doesn't really have time to work on these patches, so if anyone feels like picking them up...]
Quoted 9 lines · Thomas Petazzoni
Quoted 1 line
Perhaps even move it out of the
SKELETON_DEFAULTcondition.Agreed.
However, it would be good to mention in the config option help text that this only works with uClibc. I don't ask to do it in this patch (because it's a lot more work), but it would be great to make this works for glibc as well (where it's not
/etc/TZ, but/etc/timezone, with a different syntax).
Actually, /etc/timezone can contain something like MST7MDT too. It's just more descriptive to put America/Denver.
And AFAIK, /etc/timezone is not even used by glibc, only the environment variable TZ or /etc/localtime.
Regards,
Arnout
Signature · 6 lines
Arnout Vandecappelle arnout at mind be Senior Embedded Software Architect +32-16-286540 Essensium/Mind http://www.mind.be G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle GPG fingerprint: 31BB CF53 8660 6F88 345D 54CC A836 5879 20D7 CF43
PATCH 2/9 Copy gdbserver from external toolchain
In reply to Will WagnerIf you are using an external toolchain that includes gdb for host and gdbserver for target, this option will copy gdbserver onto the target.
Currently has support for ct-ng and codesourcery toolchains
Original idea by Anders Darander taken from http://comments.gmane.org/gmane.comp.lib.uclibc.buildroot/17747
--- toolchain/helpers.mk | 30 ++++++++++++++++++++++++++++++ toolchain/toolchain-external/Config.in | 6 ++++++ toolchain/toolchain-external/ext-tool.mk | 8 ++++++++ 3 files changed, 44 insertions(+), 0 deletions(-)
toolchain/helpers.mk +30 -0
@@ -101,6 +101,36 @@ copy_toolchain_sysroot = \ find $(STAGING_DIR) -type d | xargs chmod 755 # +# Copy selected files from the toolchain debug-root to the target dir. +# +# $1: The sysroot-feature (this is used for the base of the debug-root) +# $2: The file to be installed +# $3: Destination folder on the rootfs. +# $4: cross-gcc path +# +copy_toolchain_debugroot = \ + SYSROOT_DIR="$(strip $1)" \ + DEBUGROOT_DIR="$(strip $1)"/../debug-root; \ + FILE="$(strip $2)"; \ + DESTDIR="$(strip $3)"; \ + __CROSS_CC="$(strip $4)" ; \ +\ + if $$($${__CROSS_CC} -v 2>&1 | grep crosstool-NG 2>&1 1>/dev/null) ; then \ + echo "A Crosstool-NG generated toolchain is detected."; \ + if test -f $${DEBUGROOT_DIR}/usr/bin/$${FILE}; then \ + $(INSTALL) -m0755 $${DEBUGROOT_DIR}/usr/bin/$${FILE} $(TARGET_DIR)/$${DESTDIR}/$${FILE}; \ + fi \ + elif $$($(TARGET_CROSS)gcc -v 2>&1 | grep 'Sourcery G++' 2>&1 1>/dev/null) ; then \ + echo "A Sourcery G++ generated toolchain is detected."; \ + if test -f $${SYSROOT_DIR}/usr/bin/$${FILE}; then \ + $(INSTALL) -m0755 $${SYSROOT_DIR}/usr/bin/$${FILE} $(TARGET_DIR)/$${DESTDIR}/$${FILE}; \ + fi \ + else \ + echo "Error: Not a known toolchain!"; \ + exit 1; \ + fi + +# # Create lib64 -> lib and usr/lib64 -> usr/lib symbolic links in the # target and staging directories. This is needed for some 64 bits # toolchains such as the Crosstool-NG toolchains, for which the path
toolchain/toolchain-external/Config.in +6 -0
@@ -322,6 +322,12 @@ config BR2_TOOLCHAIN_EXTERNAL_CXX support. If you don't know, leave the default value, Buildroot will tell you if it's correct or not. +config BR2_TOOLCHAIN_EXTERNAL_GDBSERVER + bool "Toolchain has GDB Server binary?" + help + Select this option if your external toolchain has + a GDB server binary to be copied to the target. + endif # BR2_TOOLCHAIN_EXTERNAL_CUSTOM endif # BR2_TOOLCHAIN_EXTERNAL
toolchain/toolchain-external/ext-tool.mk +8 -0
@@ -64,6 +64,10 @@ LIB_EXTERNAL_LIBS+=libpthread.so ifeq ($(BR2_PACKAGE_GDB_SERVER),y) LIB_EXTERNAL_LIBS+=libthread_db.so endif # gdbserver +ifeq ($(BR2_TOOLCHAIN_EXTERNAL_GDBSERVER),y) +LIB_EXTERNAL_LIBS+=libthread_db.so +LIB_EXTERNAL_GDBSERVER+=gdbserver +endif # external gdbserver endif # ! no threads # Details about sysroot directory selection.
@@ -300,6 +304,10 @@ $(STAMP_DIR)/ext-toolchain-installed: $(TOOLCHAIN_EXTERNAL_DEPENDENCIES) if [ -L $${ARCH_SYSROOT_DIR}/lib64 ] ; then \ $(call create_lib64_symlinks) ; \ fi ; \ + if test -n $(LIB_EXTERNAL_GDBSERVER) ; then \ + echo "Copy gdbserver from the external toolchain to target..." ; \ + $(call copy_toolchain_debugroot,$${SYSROOT_DIR},$(LIB_EXTERNAL_GDBSERVER),/usr/bin,$(TOOLCHAIN_EXTERNAL_CC)) ; \ + fi ; \ touch $@ # Build toolchain wrapper for preprocessor, C and C++ compiler, and setup
Signature · 1 line
1.7.2.5
PATCH 2/9 Copy gdbserver from external toolchain
Quoted 19 lines · Will Wagner
If you are using an external toolchain that includes gdb for host and gdbserver for target, this option will copy gdbserver onto the target.
Currently has support for ct-ng and codesourcery toolchains
Original idea by Anders Darander taken from http://comments.gmane.org/gmane.comp.lib.uclibc.buildroot/17747
Signed-off-by Will Wagner <[email protected]>--- toolchain/helpers.mk | 30 ++++++++++++++++++++++++++++++ toolchain/toolchain-external/Config.in | 6 ++++++ toolchain/toolchain-external/ext-tool.mk | 8 ++++++++ 3 files changed, 44 insertions(+), 0 deletions(-)toolchain/helpers.mk +0
-0@@ -101,6 +101,36 @@ copy_toolchain_sysroot = \ find $(STAGING_DIR) -type d | xargs chmod 755
toolchain/helpers.mk copy_toolchain_sysroot = \ · line 111
Quoted 10 lines
toolchain/helpers.mk +8
-0# +# Copy selected files from the toolchain debug-root to the target dir. +# +# $1: The sysroot-feature (this is used for the base of the debug-root) +# $2: The file to be installed +# $3: Destination folder on the rootfs. +# $4: cross-gcc path +# +copy_toolchain_debugroot = \
This macro is only called from one place and I don't see a reason why
it should ever be called from anywhere else. So why not put it directly in the ext-toolchain-installed target?
Quoted 10 lines
toolchain/helpers.mk +10
-0+ SYSROOT_DIR="$(strip $1)" \ + DEBUGROOT_DIR="$(strip $1)"/../debug-root; \ + FILE="$(strip $2)"; \ + DESTDIR="$(strip $3)"; \ + __CROSS_CC="$(strip $4)" ; \ +\ + if $$($${__CROSS_CC} -v 2>&1 | grep crosstool-NG 2>&1 1>/dev/null) ; then \ + echo "A Crosstool-NG generated toolchain is detected."; \ + if test -f $${DEBUGROOT_DIR}/usr/bin/$${FILE}; then \ + $(INSTALL) -m0755 $${DEBUGROOT_DIR}/usr/bin/$${FILE} $(TARGET_DIR)/$${DESTDIR}/$${FILE}; \
toolchain/helpers.mk copy_toolchain_sysroot = \ · line 131
Quoted 10 lines
toolchain/helpers.mk +10
-0+ fi \ + elif $$($(TARGET_CROSS)gcc -v 2>&1 | grep 'Sourcery G++' 2>&1 1>/dev/null) ; then \ + echo "A Sourcery G++ generated toolchain is detected."; \ + if test -f $${SYSROOT_DIR}/usr/bin/$${FILE}; then \ + $(INSTALL) -m0755 $${SYSROOT_DIR}/usr/bin/$${FILE} $(TARGET_DIR)/$${DESTDIR}/$${FILE}; \ + fi \ + else \ + echo "Error: Not a known toolchain!"; \ + exit 1; \ + fi
Isn't it simpler to just try the possible locations? I think we can
safely assume that if there is a file called 'gdbserver' in a bin directory, it will be the gdbserver we want.
So something like
found=false; \
for dir in $${DEBUGROOT_DIR} $${SYSROOT_DIR}; do \
if test -f $${dir}/usr/bin/$${FILE}; then
$(INSTALL) -m0755 $${SYSROOT_DIR}/usr/bin/$${FILE} $(TARGET_DIR)/$${DESTDIR}/$${FILE}; \
found=true; \
break; \
fi; \
done; \
if [ -z "$${found}" ]; then \
echo "gdbserver executable not found!"; \
exit 1; \
fiQuoted 10 lines
toolchain/helpers.mk +2
-0+ +# # Create lib64 -> lib and usr/lib64 -> usr/lib symbolic links in the # target and staging directories. This is needed for some 64 bits # toolchains such as the Crosstool-NG toolchains, for which the pathtoolchain/toolchain-external/Config.in +0
-0
toolchain/toolchain-external/Config.in config BR2_TOOLCHAIN_EXTERNAL_CXX · line 330
Quoted 9 lines
toolchain/toolchain-external/Config.in +6
-0@@ -322,6 +322,12 @@ config BR2_TOOLCHAIN_EXTERNAL_CXX support. If you don't know, leave the default value, Buildroot will tell you if it's correct or not. +config BR2_TOOLCHAIN_EXTERNAL_GDBSERVER + bool "Toolchain has GDB Server binary?" + help + Select this option if your external toolchain has + a GDB server binary to be copied to the target. +
Either this one should depend on BR2_PACKAGE_GDB_SERVER or vice versa.
Quoted 20 lines
toolchain/toolchain-external/Config.in +0
-0endif # BR2_TOOLCHAIN_EXTERNAL_CUSTOM endif # BR2_TOOLCHAIN_EXTERNALtoolchain/toolchain-external/ext-tool.mk +4
-0@@ -64,6 +64,10 @@ LIB_EXTERNAL_LIBS+=libpthread.so ifeq ($(BR2_PACKAGE_GDB_SERVER),y) LIB_EXTERNAL_LIBS+=libthread_db.so endif # gdbserver +ifeq ($(BR2_TOOLCHAIN_EXTERNAL_GDBSERVER),y) +LIB_EXTERNAL_LIBS+=libthread_db.so +LIB_EXTERNAL_GDBSERVER+=gdbserver +endif # external gdbserver endif # ! no threads # Details about sysroot directory selection.
toolchain/toolchain-external/ext-tool.mk $(STAMP_DIR)/ext-toolchain-installed: $(TOOLCHAIN_EXTERNAL_DEPENDENCIES) · line 313
Quoted 10 lines
toolchain/toolchain-external/ext-tool.mk +4
-0@@ -300,6 +304,10 @@ $(STAMP_DIR)/ext-toolchain-installed: $(TOOLCHAIN_EXTERNAL_DEPENDENCIES) if [ -L $${ARCH_SYSROOT_DIR}/lib64 ] ; then \ $(call create_lib64_symlinks) ; \ fi ; \ + if test -n $(LIB_EXTERNAL_GDBSERVER) ; then \ + echo "Copy gdbserver from the external toolchain to target..." ; \ + $(call copy_toolchain_debugroot,$${SYSROOT_DIR},$(LIB_EXTERNAL_GDBSERVER),/usr/bin,$(TOOLCHAIN_EXTERNAL_CC)) ; \ + fi ; \ touch $@ # Build toolchain wrapper for preprocessor, C and C++ compiler, and setup
Regards,
Arnout
Signature · 9 lines
Arnout Vandecappelle arnout at mind be Senior Embedded Software Architect +32-16-286540 Essensium/Mind http://www.mind.be G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle GPG fingerprint: 31BB CF53 8660 6F88 345D 54CC A836 5879 20D7 CF43 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20111015/57daba3a/attachment-0001.html>
PATCH 2/9 Copy gdbserver from external toolchain
In reply to Will WagnerHello,
Le Fri, 14 Oct 2011 15:51:54 +0100,
Will Wagner <[email protected]> a ?crit :
Quoted 7 lines
If you are using an external toolchain that includes gdb for host and gdbserver for target, this option will copy gdbserver onto the target.
Currently has support for ct-ng and codesourcery toolchains
Original idea by Anders Darander taken from http://comments.gmane.org/gmane.comp.lib.uclibc.buildroot/17747
Signed-off-by Will Wagner <[email protected]>
You should wrap the commit log (ditto for all your patches)
See also
[PATCH 3/4] debug: provide an option to copy the gdbserver to the target
that I posted on July, 11th 2011.
Thomas
Signature · 4 lines
Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com
PATCH 2/9 Copy gdbserver from external toolchain
Quoted 6 lines · Thomas Petazzoni
See also
[PATCH 3/4] debug: provide an option to copy the gdbserver to the target
that I posted on July, 11th 2011.
Grmbl, I missed that one and I already started improving Will's patch... I just love wasting my time like that :-/
[I lost my mail archive so it's a bit difficult to your to the original patch, so I'll put my comment here.]
I notice that Will has
+ifeq ($(BR2_TOOLCHAIN_EXTERNAL_GDBSERVER),y) +LIB_EXTERNAL_LIBS+=libthread_db.so
which was not there in your patch. Is it not needed?
Regards,
Arnout
Signature · 6 lines
Arnout Vandecappelle arnout at mind be Senior Embedded Software Architect +32-16-286540 Essensium/Mind http://www.mind.be G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle GPG fingerprint: 31BB CF53 8660 6F88 345D 54CC A836 5879 20D7 CF43
PATCH 2/9 Copy gdbserver from external toolchain
Quoted 16 lines · Arnout Vandecappelle
Quoted 6 lines · Thomas Petazzoni
See also
[PATCH 3/4] debug: provide an option to copy the gdbserver to the target
that I posted on July, 11th 2011.
Grmbl, I missed that one and I already started improving Will's patch... I just love wasting my time like that :-/
[I lost my mail archive so it's a bit difficult to your to the original patch, so I'll put my comment here.]
I notice that Will has
toolchain/toolchain-external/ext-tool.mk +2
-0+ifeq ($(BR2_TOOLCHAIN_EXTERNAL_GDBSERVER),y) +LIB_EXTERNAL_LIBS+=libthread_db.so
Quoted 1 line
which was not there in your patch. Is it not needed?
Arnout, did you ever finish your changes here? I'd love to see a version of this committed to buildroot.
Any testing/review I can do?
Thanks
Will
Signature · 5 lines
------------------------------------------------------------------------ Will Wagner will_wagner at carallon.com Development Manager Office Tel: +44 (0)20 7371 2032 Carallon Ltd, Studio G20, Shepherds Building, Rockley Rd, London W14 0DA ------------------------------------------------------------------------
PATCH 3/9 Add openbox window manager
In reply to Will WagnerAnother X window manager, this one is very minimalist and has few dependancies
--- package/Config.in | 1 + package/openbox/Config.in | 20 +++ package/openbox/openbox.mk | 25 ++++ package/openbox/rc.xml | 337 ++++++++++++++++++++++++++++++++++++++++++++ package/openbox/themerc | 159 +++++++++++++++++++++ 5 files changed, 542 insertions(+), 0 deletions(-) create mode 100644 package/openbox/Config.in create mode 100644 package/openbox/openbox.mk create mode 100644 package/openbox/rc.xml create mode 100644 package/openbox/themerc
package/Config.in +1 -0
@@ -128,6 +128,7 @@ source "package/matchbox/Config.in" source "package/metacity/Config.in" source "package/blackbox/Config.in" source "package/fluxbox/Config.in" +source "package/openbox/Config.in" comment "X applications" source "package/alsamixergui/Config.in"
package/openbox/Config.in new file +20 -0
@@ -0,0 +1,20 @@ +config BR2_PACKAGE_OPENBOX + bool "openbox" + depends on BR2_PACKAGE_XORG7 + select BR2_PACKAGE_XLIB_LIBX11 + select BR2_PACKAGE_LIBGLIB2 + select BR2_PACKAGE_PANGO + select BR2_PACKAGE_LIBXML2 + help + Openbox is a highly configurable, next generation + window manager with extensive standards support. + + http://openbox.org/wiki/Main_Page + +config BR2_PACKAGE_OPENBOX_SIMPLE + bool "simple openbox config" + depends on BR2_PACKAGE_OPENBOX + help + This will remove the default openbox + configuration files and themes, + replacing them with a very simple one
package/openbox/openbox.mk new file +25 -0
@@ -0,0 +1,25 @@ +############################################################# +# +# openbox +# +############################################################# + +OPENBOX_VERSION:=3.4.11 +OPENBOX_SOURCE:=openbox-$(OPENBOX_VERSION).tar.gz +OPENBOX_SITE:=http://openbox.org/dist/openbox/ + +OPENBOX_DEPENDENCIES:=xlib_libX11 libglib2 pango libxml2 + +ifeq ($(BR2_PACKAGE_OPENBOX_SIMPLE),y) + define OPENBOX_SIMPLE_CONFIG + rm $(TARGET_DIR)/etc/xdg/openbox/menu.xml + cp package/openbox/rc.xml $(TARGET_DIR)/etc/xdg/openbox/rc.xml + rm -rf $(TARGET_DIR)/usr/share/themes/* + mkdir -p $(TARGET_DIR)/usr/share/themes/Clearlooks/openbox-3 + cp package/openbox/themerc $(TARGET_DIR)/usr/share/themes/Clearlooks/openbox-3/ + endef + + OPENBOX_POST_INSTALL_TARGET_HOOKS += OPENBOX_SIMPLE_CONFIG +endif + +$(eval $(call AUTOTARGETS))
package/openbox/rc.xml new file +337 -0
337 lines not on this page · raw message
package/openbox/themerc new file +159 -0
159 lines not on this page · raw message
Signature · 1 line
1.7.2.5
PATCH 3/9 Add openbox window manager
Quoted 2 lines · Will Wagner
+<!-- Do not edit this file, it will be overwritten on install.
+ Copy the file to $HOME/.config/openbox/ instead. -->
This comment seems a bit out-of-place...
Regards,
Arnout
Signature · 9 lines
Arnout Vandecappelle arnout at mind be Senior Embedded Software Architect +32-16-286540 Essensium/Mind http://www.mind.be G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle GPG fingerprint: 31BB CF53 8660 6F88 345D 54CC A836 5879 20D7 CF43 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20111015/242912a1/attachment-0001.html>
PATCH 3/9 Add openbox window manager
In reply to Will WagnerLe Fri, 14 Oct 2011 15:51:55 +0100,
Will Wagner <[email protected]> a ?crit :
package/openbox/openbox.mk line 11
Quoted 5 lines
package/openbox/openbox.mk new file +5
-0+OPENBOX_VERSION:=3.4.11 +OPENBOX_SOURCE:=openbox-$(OPENBOX_VERSION).tar.gz +OPENBOX_SITE:=http://openbox.org/dist/openbox/ + +OPENBOX_DEPENDENCIES:=xlib_libX11 libglib2 pango libxml2
You should use = instead of :=, and put a space before and after =.
Quoted 1 line
+ifeq ($(BR2_PACKAGE_OPENBOX_SIMPLE),y)
Perhaps this should be calledBR2_PACKAGE_OPENBOX_INSTALL_SIMPLE_CONFIG ?
Quoted 1 line
+ define
OPENBOX_SIMPLE_CONFIG
and OPENBOX_INSTALL_SIMPLE_CONFIG
package/openbox/openbox.mk line 16
Quoted 2 lines
package/openbox/openbox.mk new file +2
-0+ rm $(TARGET_DIR)/etc/xdg/openbox/menu.xml + cp package/openbox/rc.xml $(TARGET_DIR)/etc/xdg/openbox/rc.xml
install -D -m 0644 package/openbox/rc.xml $(TARGET_DIR)/etc/xdg/openbox/rc.xml
Quoted 1 line
+ rm -rf $(TARGET_DIR)/usr/share/themes/*
Couldn't this possibly erase some 'themes' from other applications ?
package/openbox/openbox.mk line 19
Quoted 2 lines
package/openbox/openbox.mk new file +2
-0+ mkdir -p $(TARGET_DIR)/usr/share/themes/Clearlooks/openbox-3 + cp package/openbox/themerc $(TARGET_DIR)/usr/share/themes/Clearlooks/openbox-3/
install -D -m 0644 package/openbox/themerc $(TARGET_DIR)/usr/share/themes/Clearlooks/openbox-3/themerc
Otherwise, looks good.
Thomas
Signature · 4 lines
Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com
PATCH 4/9 New package: Google Breakpad library
In reply to Will WagnerThe breakpad library is a crash reporting framework
See http://code.google.com/p/google-breakpad/ for more details
--- package/Config.in | 1 + package/breakpad/Config.in | 7 ++++ .../breakpad-782_crash_generation_server.patch | 12 +++++++ .../breakpad-782_linux_client_cleanup.patch | 33 ++++++++++++++++++++ package/breakpad/breakpad-782_linux_exit.patch | 22 +++++++++++++ package/breakpad/breakpad.mk | 16 +++++++++ 6 files changed, 91 insertions(+), 0 deletions(-) create mode 100644 package/breakpad/Config.in create mode 100644 package/breakpad/breakpad-782_crash_generation_server.patch create mode 100644 package/breakpad/breakpad-782_linux_client_cleanup.patch create mode 100644 package/breakpad/breakpad-782_linux_exit.patch create mode 100644 package/breakpad/breakpad.mk
package/Config.in +1 -0
@@ -355,6 +355,7 @@ source "package/liboil/Config.in" source "package/libsigc/Config.in" source "package/orc/Config.in" source "package/startup-notification/Config.in" +source "package/breakpad/Config.in" endmenu menu "Text and terminal handling"
package/breakpad/Config.in new file +7 -0
@@ -0,0 +1,7 @@ +config BR2_PACKAGE_BREAKPAD + bool "breakpad" + select BR2_PACKAGE_LIBCURL + help + An open-source multi-platform crash reporting system + + http://code.google.com/p/google-breakpad/
package/breakpad/breakpad-782_crash_generation_server.patch new file +12 -0
@@ -0,0 +1,12 @@ +Index: Makefile.am +=================================================================== +--- a/Makefile.am (revision 782) ++++ b/Makefile.am (working copy) +@@ -64,6 +64,7 @@ + + src_client_linux_libbreakpad_client_a_SOURCES = \ + src/client/linux/crash_generation/crash_generation_client.cc \ ++ src/client/linux/crash_generation/crash_generation_server.cc \ + src/client/linux/handler/exception_handler.cc \ + src/client/linux/minidump_writer/linux_dumper.cc \ + src/client/linux/minidump_writer/minidump_writer.cc \
package/breakpad/breakpad-782_linux_client_cleanup.patch new file +33 -0
@@ -0,0 +1,33 @@ +Index: src/client/linux/crash_generation/crash_generation_client.cc +=================================================================== +--- a/src/client/linux/crash_generation/crash_generation_client.cc (revision 778) ++++ b/src/client/linux/crash_generation/crash_generation_client.cc (working copy) +@@ -40,6 +40,13 @@ + + namespace google_breakpad { + ++ ++CrashGenerationClient::~CrashGenerationClient() ++{ ++ if (server_fd_ >= 0) ++ sys_close(server_fd_); ++} ++ + bool + CrashGenerationClient::RequestDump(const void* blob, size_t blob_size) + { +Index: src/client/linux/crash_generation/crash_generation_client.h +=================================================================== +--- a/src/client/linux/crash_generation/crash_generation_client.h (revision 778) ++++ b/src/client/linux/crash_generation/crash_generation_client.h (working copy) +@@ -36,9 +36,7 @@ + + class CrashGenerationClient { + public: +- ~CrashGenerationClient() +- { +- } ++ ~CrashGenerationClient(); + + // Request the crash server to generate a dump. |blob| is a hack, + // see exception_handler.h and minidump_writer.h
package/breakpad/breakpad-782_linux_exit.patch new file +22 -0
@@ -0,0 +1,22 @@ +Index: src/client/linux/crash_generation/crash_generation_server.cc +=================================================================== +--- a/src/client/linux/crash_generation/crash_generation_server.cc (revision 778) ++++ b/src/client/linux/crash_generation/crash_generation_server.cc (working copy) +@@ -298,7 +298,17 @@ + CrashGenerationServer::ClientEvent(short revents) + { + if (POLLHUP & revents) ++ { ++ if (exit_callback_) { ++ ClientInfo info; ++ ++ info.crash_server_ = this; ++ info.pid_ = -1; ++ ++ exit_callback_(exit_context_, &info); ++ } + return false; ++ } + assert(POLLIN & revents); + + // A process has crashed and has signaled us by writing a datagram
package/breakpad/breakpad.mk new file +16 -0
@@ -0,0 +1,16 @@ +############################################################# +# +# breakpad +# +############################################################# + +BREAKPAD_SITE:=http://google-breakpad.googlecode.com/svn/trunk/ +BREAKPAD_SITE_METHOD:=svn +BREAKPAD_VERSION:=842 +BREAKPAD_DEPENDENCIES:=libcurl + +BREAKPAD_LIBTOOL_PATCH = NO +BREAKPAD_INSTALL_STAGING = YES +BREAKPAD_INSTALL_TARGET = NO + +$(eval $(call AUTOTARGETS))
Signature · 1 line
1.7.2.5
PATCH 4/9 New package: Google Breakpad library
package/breakpad/breakpad-782_crash_generation_server.patch line 5
Quoted 11 lines · Will Wagner
package/breakpad/breakpad-782_crash_generation_server.patch new file +5
-0@@ -0,0 +1,12 @@ +Index: Makefile.am +=================================================================== +--- a/Makefile.am (revision 782) ++++ b/Makefile.am (working copy) +@@ -64,6 +64,7 @@
Patches should have a commit-log-like message at the top, including a
Signed-off-by line.
Regards,
Arnout
Signature · 9 lines
Arnout Vandecappelle arnout at mind be Senior Embedded Software Architect +32-16-286540 Essensium/Mind http://www.mind.be G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle GPG fingerprint: 31BB CF53 8660 6F88 345D 54CC A836 5879 20D7 CF43 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20111015/86aaf34c/attachment.html>
PATCH 4/9 New package: Google Breakpad library
In reply to Will WagnerHello,
Le Fri, 14 Oct 2011 15:51:56 +0100,
Will Wagner <[email protected]> a ?crit :
Quoted 11 lines
The breakpad library is a crash reporting framework
See http://code.google.com/p/google-breakpad/ for more details
Signed-off-by Will Wagner <[email protected]>--- package/Config.in | 1 + package/breakpad/Config.in | 7 ++++ .../breakpad-782_crash_generation_server.patch | 12 +++++++ .../breakpad-782_linux_client_cleanup.patch | 33 ++++++++++++++++++++ package/breakpad/breakpad-782_linux_exit.patch | 22 +++++++++++++
As Arnout said, all patches require a proper description + Signed-off-by line. See for example package/libgtk2/host-libgtk2-2.20.1-reduce-dependencies.patch.
package/breakpad/breakpad.mk line 10
Quoted 10 lines
package/breakpad/breakpad.mk new file +10
-0+############################################################# +# +# breakpad +# +############################################################# + +BREAKPAD_SITE:=http://google-breakpad.googlecode.com/svn/trunk/ +BREAKPAD_SITE_METHOD:=svn +BREAKPAD_VERSION:=842 +BREAKPAD_DEPENDENCIES:=libcurl
= instead of :=, spaces before and after =.
Quoted 1 line
+BREAKPAD_LIBTOOL_PATCH = NO
Does it really break something?
package/breakpad/breakpad.mk line 14
Quoted 2 lines
package/breakpad/breakpad.mk new file +2
-0+BREAKPAD_INSTALL_STAGING = YES +BREAKPAD_INSTALL_TARGET = NO
This is a strange combination. A comment would be good to explain why a library does not need to be installed on the target.
Thomas
Signature · 4 lines
Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com
PATCH 5/9 Support for compiling Qt for X11
In reply to Will WagnerThis patch enables you to cross compile the X11 version of Qt. Although cross compilation of Qt is not officially supported it works well and allows Qt to be build for a target running X11
--- package/qt/Config.in | 12 ++++++++++++ package/qt/qt.mk | 44 +++++++++++++++++++++++++++++++++++++++----- 2 files changed, 51 insertions(+), 5 deletions(-)
package/qt/Config.in +12 -0
@@ -11,6 +11,14 @@ menuconfig BR2_PACKAGE_QT if BR2_PACKAGE_QT +comment "Qt will be built for use with an X server" + depends on BR2_PACKAGE_XSERVER_XORG_SERVER + +config BR2_PACKAGE_QT_X11 + bool + depends on BR2_PACKAGE_XSERVER_XORG_SERVER + default y + config BR2_PACKAGE_QT_DEBUG bool "Compile with debug support" help
@@ -85,6 +93,7 @@ config BR2_PACKAGE_QT_GUI_MODULE video output, or you don't require Qt GUI, say n. if BR2_PACKAGE_QT_GUI_MODULE +if !BR2_PACKAGE_QT_X11 menu "Pixel depths" comment "Deselecting each option leads to Qt's default (8,16,32)"
@@ -165,6 +174,7 @@ config BR2_PACKAGE_QT_SYSTEMFREETYPE Use shared libfreetype from the target system. See http://www.freetype.org/ endchoice +endif # !BR2_PACKAGE_QT_X11 config BR2_PACKAGE_QT_GIF bool "Enable GIF support"
@@ -255,9 +265,11 @@ endchoice source "package/qt/Config.sql.in" if BR2_PACKAGE_QT_GUI_MODULE +if !BR2_PACKAGE_QT_X11 source "package/qt/Config.gfx.in" source "package/qt/Config.mouse.in" source "package/qt/Config.keyboard.in" +endif # !BR2_PACKAGE_QT_X11 config BR2_PACKAGE_QT_PHONON bool "Phonon Module"
package/qt/qt.mk +39 -5
104 lines not on this page · raw message
Signature · 1 line
1.7.2.5
PATCH 6/9 Qt commercial support
In reply to Will WagnerThis patch allows the commercial version of Qt to be built. It does not attempt to download the source code, instead it uses the new file: method so the user has to download the source manually
--- package/qt/Config.in | 21 +++++++++++++++++++-- package/qt/qt.mk | 11 +++++++++-- 2 files changed, 28 insertions(+), 4 deletions(-)
package/qt/Config.in +19 -2
@@ -11,6 +11,23 @@ menuconfig BR2_PACKAGE_QT if BR2_PACKAGE_QT +choice + prompt "License type" + default BR2_PACKAGE_QT_LICENSE_OPENSOURCE + help + Selects the license type: Opensource or Commercial + +config BR2_PACKAGE_QT_LICENSE_OPENSOURCE + bool "Opensource License" + +config BR2_PACKAGE_QT_LICENSE_COMMERCIAL + bool "Commercial License" + help + You will need a valid license file for this to work. + You will also need to download the source code manually. + +endchoice + comment "Qt will be built for use with an X server" depends on BR2_PACKAGE_XSERVER_XORG_SERVER
@@ -53,9 +70,9 @@ config BR2_PACKAGE_QT_STATIC endchoice config BR2_PACKAGE_QT_LICENSE_APPROVED - bool "Approve free license" + bool "Approve license" help - Select this if you approve one of the available free licenses for the + Select this if you approve one of the available licenses for the Qt4 library. By doing this you will not be asked while the library is compiled. Please read and understand the license terms before approving this.
package/qt/qt.mk +9 -2
@@ -13,13 +13,20 @@ ###################################################################### QT_VERSION = 4.7.4 -QT_SOURCE = qt-everywhere-opensource-src-$(QT_VERSION).tar.gz +QT_LICENSE_TYPE = opensource +ifeq ($(BR2_PACKAGE_QT_LICENSE_COMMERCIAL),y) +QT_LICENSE_TYPE = commercial +endif +QT_SOURCE = qt-everywhere-$(QT_LICENSE_TYPE)-src-$(QT_VERSION).tar.gz QT_SITE = http://get.qt.nokia.com/qt/source +ifeq ($(BR2_PACKAGE_QT_LICENSE_COMMERCIAL),y) +QT_SITE = file://$(HOME) +endif QT_INSTALL_STAGING = YES ifeq ($(BR2_PACKAGE_QT_LICENSE_APPROVED),y) -QT_CONFIGURE_OPTS += -opensource -confirm-license +QT_CONFIGURE_OPTS += -$(QT_LICENSE_TYPE) -confirm-license endif QT_CONFIG_FILE=$(call qstrip,$(BR2_PACKAGE_QT_CONFIG_FILE))
Signature · 1 line
1.7.2.5
PATCH 6/9 Qt commercial support
On Friday 14 October 2011 16:51:58, Will Wagner wrote:
[snip]
package/qt/qt.mk line 24
Quoted 3 lines
package/qt/qt.mk +3
-0+ifeq ($(BR2_PACKAGE_QT_LICENSE_COMMERCIAL),y) +QT_SITE = file://$(HOME) +endif
The download location of the tar file should be a configuration option.
$(DL_DIR) seems like a better default for it.
Regards,
Arnout
Signature · 9 lines
Arnout Vandecappelle arnout at mind be Senior Embedded Software Architect +32-16-286540 Essensium/Mind http://www.mind.be G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle GPG fingerprint: 31BB CF53 8660 6F88 345D 54CC A836 5879 20D7 CF43 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20111015/abde127d/attachment.html>
PATCH 6/9 Qt commercial support
Quoted 1 line · Arnout Vandecappelle
On Friday 14 October 2011 16:51:58, Will Wagner wrote:
Could you stop to post in HTML please
Best Regards,
J.
PATCH 7/9 Improve Qt ttf support
In reply to Will WagnerThis patch adds a config option to only copy specific fonts onto the target rather than all true type fonts
--- package/qt/Config.in | 13 +++++++++++++ package/qt/qt.mk | 8 +++++++- 2 files changed, 20 insertions(+), 1 deletions(-)
package/qt/Config.in +13 -0
@@ -166,6 +166,19 @@ config BR2_PACKAGE_QT_FONT_JAPANESE config BR2_PACKAGE_QT_FONT_UNIFONT bool "unicode" +config BR2_PACKAGE_QT_FONT_ALL_TRUETYPE + bool "install all truetype fonts" + depends on !BR2_PACKAGE_QT_NOFREETYPE + default y + +config BR2_PACKAGE_QT_FONT_DEJAVU + bool "dejavu ttf" + depends on !BR2_PACKAGE_QT_NOFREETYPE && !BR2_PACKAGE_QT_FONT_ALL_TRUETYPE + +config BR2_PACKAGE_QT_FONT_VERA + bool "vera ttf" + depends on !BR2_PACKAGE_QT_NOFREETYPE && !BR2_PACKAGE_QT_FONT_ALL_TRUETYPE + endmenu choice
package/qt/qt.mk +7 -1
@@ -303,6 +303,10 @@ QT_FONTS = $(addprefix $(STAGING_DIR)/usr/lib/fonts/, $(addsuffix *.qpf, \ $(if $(BR2_PACKAGE_QT_FONT_JAPANESE),japanese) \ $(if $(BR2_PACKAGE_QT_FONT_UNIFONT),unifont))) +QT_FONTS += $(addprefix $(STAGING_DIR)/usr/lib/fonts/, $(addsuffix *.ttf, \ + $(if $(BR2_PACKAGE_QT_FONT_DEJAVU),DejaVu) \ + $(if $(BR2_PACKAGE_QT_FONT_VERA),Vera))) + ifeq ($(BR2_PACKAGE_QT_QTFREETYPE),y) QT_CONFIGURE_OPTS += -qt-freetype else
@@ -647,19 +651,21 @@ define QT_INSTALL_TARGET_PLUGINS endef # Fonts installation -ifneq ($(QT_FONTS),) +ifneq ($(strip $(QT_FONTS)),) define QT_INSTALL_TARGET_FONTS mkdir -p $(TARGET_DIR)/usr/lib/fonts cp -dpf $(QT_FONTS) $(TARGET_DIR)/usr/lib/fonts endef endif +ifeq ($(BR2_PACKAGE_QT_FONT_ALL_TRUETYPE),y) ifeq ($(BR2_PACKAGE_QT_QTFREETYPE)$(BR2_PACKAGE_QT_SYSTEMFREETYPE),y) define QT_INSTALL_TARGET_FONTS_TTF mkdir -p $(TARGET_DIR)/usr/lib/fonts cp -dpf $(STAGING_DIR)/usr/lib/fonts/*.ttf $(TARGET_DIR)/usr/lib/fonts endef endif +endif define QT_INSTALL_TARGET_CMDS $(QT_INSTALL_TARGET_LIBS)
Signature · 1 line
1.7.2.5
PATCH 8/9 qt: fix config when specifying custom config file
In reply to Will Wagner--- package/qt/qt.mk | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
package/qt/qt.mk +1 -1
@@ -32,7 +32,7 @@ endif QT_CONFIG_FILE=$(call qstrip,$(BR2_PACKAGE_QT_CONFIG_FILE)) ifneq ($(QT_CONFIG_FILE),) -QT_CONFIGURE_OPTS += -config buildroot +QT_CONFIGURE_OPTS += -qconfig buildroot endif QT_CFLAGS = $(TARGET_CFLAGS)
Signature · 1 line
1.7.2.5
PATCH 9/9 Mesa3d does not build with --enable-static set
In reply to Will Wagner--- package/x11r7/mesa3d/mesa3d.mk | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
package/x11r7/mesa3d/mesa3d.mk +1 -1
@@ -8,7 +8,7 @@ MESA3D_SOURCE:=MesaLib-$(MESA3D_VERSION).tar.gz MESA3D_SITE:=ftp://ftp.freedesktop.org/pub/mesa/$(MESA3D_VERSION) MESA3D_AUTORECONF = NO -MESA3D_CONF_OPT = --disable-egl --disable-glu --disable-glw --disable-glut --disable-gallium --with-driver=dri --with-dri-drivers=swrast +MESA3D_CONF_OPT = --disable-static --disable-egl --disable-glu --disable-glw --disable-glut --disable-gallium --with-driver=dri --with-dri-drivers=swrast MESA3D_INSTALL_STAGING = YES MESA3D_DEPENDENCIES = xproto_glproto xlib_libXxf86vm xlib_libXdamage xlib_libXfixes xproto_dri2proto libdrm expat
Signature · 1 line
1.7.2.5