code
string
repo_name
string
path
string
language
string
license
string
size
int64
Get HZ value from system rather than requiring via CPPFLAGS Patch by Robin Getz <rgetz@blackfin.uclinux.org> --- a/dhry.h +++ b/dhry.h @@ -359,6 +359,10 @@ /* for "times" */ #endif +#ifndef HZ +#include <sys/param.h> +#endif + #define Mic_secs_Per_Second 1000000.0 /* Berkeley UNIX C returns process times in seconds/HZ */
shibajee/buildroot
package/dhrystone/0002-HZ.patch
patch
mit
369
trust the exit status of the program Patch by Robin Getz <rgetz@blackfin.uclinux.org> --- a/dhry_1.c +++ b/dhry_1.c @@ -274,6 +289,7 @@ printf ("\n"); } + exit(0); }
shibajee/buildroot
package/dhrystone/0003-exit.patch
patch
mit
186
get prototypes for malloc/exit/strcpy Patch by Mike Frysinger <vapier@gentoo.org> --- a/dhry.h +++ b/dhry.h @@ -388,6 +388,8 @@ /* General definitions: */ #include <stdio.h> +#include <stdlib.h> +#include <string.h> /* for strcpy, strcmp */ #define Null 0
shibajee/buildroot
package/dhrystone/0004-headers.patch
patch
mit
283
Avoid collision with C library using NO_PROTOTYPES found in code already Patch by Robin Getz <rgetz@blackfin.uclinux.org> --- a/dhry_1.c +++ b/dhry_1.c @@ -28,7 +28,9 @@ int Arr_1_Glob [50]; int Arr_2_Glob [50] [50]; +#ifndef NO_PROTOTYPES extern char *malloc (); +#endif Enumeration Func_1 (); /* forward declaration necessary since Enumeration may not simply be int */ @@ -45,14 +45,18 @@ #ifdef TIMES struct tms time_info; +#ifndef NO_PROTOTYPES extern int times (); /* see library function "times" */ +#endif #define Too_Small_Time 120 /* Measurements should last at least about 2 seconds */ #endif #ifdef TIME +#ifndef NO_PROTOTYPES extern long time(); /* see library function "time" */ +#endif #define Too_Small_Time 2 /* Measurements should last at least 2 seconds */ #endif
shibajee/buildroot
package/dhrystone/0005-prototypes.patch
patch
mit
921
config BR2_PACKAGE_DHRYSTONE bool "dhrystone" help easy-to-use integer benchmark http://www.netlib.org/benchmark/dhry-c
shibajee/buildroot
package/dhrystone/Config.in
in
mit
129
CPPFLAGS += -DNO_PROTOTYPES=1 -DHZ=100 LDLIBS += -lm all: dhrystone dhrystone: dhry_1.o dhry_2.o $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LDLIBS) clean: rm -f *.o dhrystone .PHONY: all clean
shibajee/buildroot
package/dhrystone/Makefile
Makefile
mit
194
# Locally calculated sha256 038a7e9169787125c3451a6c941f3aca5db2d2f3863871afcdce154ef17f4e3e dhry-c
shibajee/buildroot
package/dhrystone/dhrystone.hash
hash
mit
101
################################################################################ # # dhrystone # ################################################################################ DHRYSTONE_VERSION = 2 DHRYSTONE_SOURCE = dhry-c DHRYSTONE_SITE = http://www.netlib.org/benchmark define DHRYSTONE_EXTRACT_CMDS (cd $(@D) && $(SHELL) $(DL_DIR)/$($(PKG)_SOURCE)) $(Q)cp package/dhrystone/Makefile $(@D)/ endef define DHRYSTONE_BUILD_CMDS $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) endef define DHRYSTONE_INSTALL_TARGET_CMDS $(INSTALL) -D $(@D)/dhrystone $(TARGET_DIR)/usr/bin/dhrystone endef $(eval $(generic-package))
shibajee/buildroot
package/dhrystone/dhrystone.mk
mk
mit
619
config BR2_PACKAGE_DIALOG bool "dialog" depends on BR2_USE_MMU # fork() select BR2_PACKAGE_NCURSES select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE help dialog - display dialog boxes from shell scripts This application provides a method of displaying several different types of dialog boxes from shell scripts. This allows a developer of a script to interact with the user in a much friendlier manner. http://invisible-island.net/dialog/dialog.html
shibajee/buildroot
package/dialog/Config.in
in
mit
472
# Locally calculated after checking pgp signature sha256 1d98ec7cc81f11f9019fa0b90f1afdaa86579cae1ce8869a6fd61deb9d4b887a dialog-1.2-20150125.tgz
shibajee/buildroot
package/dialog/dialog.hash
hash
mit
146
################################################################################ # # dialog # ################################################################################ DIALOG_VERSION = 1.2-20150125 DIALOG_SOURCE = dialog-$(DIALOG_VERSION).tgz DIALOG_SITE = ftp://invisible-island.net/dialog DIALOG_CONF_OPTS = --with-ncurses --with-curses-dir=$(STAGING_DIR)/usr \ --disable-rpath-hack DIALOG_DEPENDENCIES = host-pkgconf ncurses DIALOG_LICENSE = LGPLv2.1 DIALOG_LICENSE_FILES = COPYING ifneq ($(BR2_ENABLE_LOCALE),y) DIALOG_DEPENDENCIES += libiconv endif DIALOG_CONF_OPTS += NCURSES_CONFIG=$(STAGING_DIR)/usr/bin/$(NCURSES_CONFIG_SCRIPTS) $(eval $(autotools-package))
shibajee/buildroot
package/dialog/dialog.mk
mk
mit
679
config BR2_PACKAGE_DIFFUTILS bool "diffutils" depends on BR2_USE_WCHAR depends on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT_IF_LOCALE help GNU diff. Compare files per line. http://www.gnu.org/software/diffutils/diffutils.html comment "diffutils needs a toolchain w/ wchar" depends on !BR2_USE_WCHAR depends on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
shibajee/buildroot
package/diffutils/Config.in
in
mit
395
# Locally calculated after checking pgp signature sha256 a25e89a8ab65fded1731e4186be1bb25cda967834b6df973599cdcd5abdfc19c diffutils-3.3.tar.xz
shibajee/buildroot
package/diffutils/diffutils.hash
hash
mit
143
################################################################################ # # diffutils # ################################################################################ DIFFUTILS_VERSION = 3.3 DIFFUTILS_SOURCE = diffutils-$(DIFFUTILS_VERSION).tar.xz DIFFUTILS_SITE = $(BR2_GNU_MIRROR)/diffutils DIFFUTILS_DEPENDENCIES = $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext) DIFFUTILS_LICENSE = GPLv3+ DIFFUTILS_LICENSE_FILES = COPYING ifeq ($(BR2_PACKAGE_BUSYBOX),y) DIFFUTILS_DEPENDENCIES += busybox endif $(eval $(autotools-package))
shibajee/buildroot
package/diffutils/diffutils.mk
mk
mit
539
Do not add (possibly poisoned) /usr/local/include and /usr/local/lib to gcc and ld search paths in configure. With BR2_COMPILER_PARANOID_UNSAFE_PATH enabled, poisoned paths result in hard errors, failing affected configure tests. Signed-off-by: Alex Suykov <alex.suykov@gmail.com> --- a/configure.ac +++ b/configure.ac @@ -57,16 +57,6 @@ AC_TYPE_INT32_T AC_TYPE_UINT32_T -dnl -------------------------------------- -dnl Check whether to add /usr/local or not -dnl (this is somewhat a religious problem) -dnl -------------------------------------- -dnl -if test "`$CPP -v < /dev/null 2>&1 | grep '/usr/local/include' 2>&1`" = ""; then - CPPFLAGS="$CPPFLAGS -I/usr/local/include" - LDFLAGS="$LDFLAGS -L/usr/local/lib" -fi - dnl ------------------------------------ dnl Check for socket libs (AIX, Solaris) dnl ------------------------------------
shibajee/buildroot
package/dillo/0002-usr-local-include.patch
patch
mit
857
config BR2_PACKAGE_DILLO bool "dillo" depends on BR2_PACKAGE_XORG7 depends on BR2_INSTALL_LIBSTDCPP depends on BR2_USE_MMU # fltk fork() select BR2_PACKAGE_FLTK select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE select BR2_PACKAGE_ZLIB help Dillo is a multi-platform graphical web browser known for its speed and small footprint. Enable openssl package to gain https support. http://www.dillo.org comment "dillo needs a toolchain w/ C++" depends on BR2_PACKAGE_XORG7 && BR2_USE_MMU depends on !BR2_INSTALL_LIBSTDCPP
shibajee/buildroot
package/dillo/Config.in
in
mit
540
# Locally calculated sha256 db1be16c1c5842ebe07b419aa7c6ef11a45603a75df2877f99635f4f8345148b dillo-3.0.5.tar.bz2
shibajee/buildroot
package/dillo/dillo.hash
hash
mit
113
################################################################################ # # dillo # ################################################################################ DILLO_VERSION = 3.0.5 DILLO_SOURCE = dillo-$(DILLO_VERSION).tar.bz2 DILLO_SITE = http://www.dillo.org/download DILLO_LICENSE = GPLv3+ DILLO_LICENSE_FILES = COPYING # configure.ac gets patched, so autoreconf is necessary DILLO_AUTORECONF = YES DILLO_DEPENDENCIES = fltk zlib \ $(if $(BR2_PACKAGE_LIBICONV),libiconv) DILLO_CONF_ENV = ac_cv_path_FLTK_CONFIG=$(STAGING_DIR)/usr/bin/fltk-config ifeq ($(BR2_PACKAGE_OPENSSL),y) DILLO_CONF_OPTS += --enable-ssl DILLO_DEPENDENCIES += openssl else DILLO_CONF_OPTS += --disable-ssl endif ifeq ($(BR2_PACKAGE_LIBPNG),y) DILLO_CONF_OPTS += --enable-png DILLO_DEPENDENCIES += libpng DILLO_CONF_ENV += PNG_CONFIG=$(STAGING_DIR)/usr/bin/libpng-config else DILLO_CONF_OPTS += --disable-png endif ifeq ($(BR2_PACKAGE_JPEG),y) DILLO_CONF_OPTS += --enable-jpeg DILLO_DEPENDENCIES += jpeg else DILLO_CONF_OPTS += --disable-jpeg endif ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y) DILLO_CONF_OPTS += --enable-threaded-dns else DILLO_CONF_OPTS += --disable-threaded-dns endif $(eval $(autotools-package))
shibajee/buildroot
package/dillo/dillo.mk
mk
mit
1,206
config BR2_PACKAGE_DING_LIBS bool "ding-libs" select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE depends on BR2_USE_WCHAR || !BR2_NEEDS_GETTEXT help The ding-libs packages contain a set of libraries used by the System Security Services Daemon (SSSD) and other projects and provide functions to manipulate filesystem pathnames (libpath_utils), a hash table to manage storage and access time properties (libdhash), a data type to collect data in a hierarchical structure (libcollection), a dynamically growing, reference-counted array (libref_array), and a library to process configuration files in initialization format (INI) into a library collection data structure (libini_config). https://git.fedorahosted.org/git/ding-libs.git comment "ding-libs needs a toolchain w/ wchar" depends on BR2_NEEDS_GETTEXT depends on !BR2_USE_WCHAR
shibajee/buildroot
package/ding-libs/Config.in
in
mit
921
# Locally computed sha256 639984a57d6f936a6551c842712619692febaebf4515033fc929620a241ffa6a ding_libs-0_4_0.tar.xz
shibajee/buildroot
package/ding-libs/ding-libs.hash
hash
mit
114
################################################################################ # # ding-libs # ################################################################################ DING_LIBS_VERSION = 0_4_0 DING_LIBS_SOURCE = ding_libs-$(DING_LIBS_VERSION).tar.xz DING_LIBS_SITE = https://git.fedorahosted.org/cgit/ding-libs.git/snapshot DING_LIBS_DEPENDENCIES = host-pkgconf \ $(if $(BR2_PACKAGE_GETTEXT),gettext) \ $(if $(BR2_PACKAGE_LIBICONV),libiconv) DING_LIBS_INSTALL_STAGING = YES DING_LIBS_LICENSE = LGPLv3+ (library),GPLv3+ (test programs) DING_LIBS_LICENSE_FILES = COPYING COPYING.LESSER # autoconf/automake generated files not present in tarball DING_LIBS_AUTORECONF = YES $(eval $(autotools-package))
shibajee/buildroot
package/ding-libs/ding-libs.mk
mk
mit
715
--- src/df_knuckles/matrix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: directfb-examples-1.2.0/src/df_knuckles/matrix.c =================================================================== --- directfb-examples-1.2.0.orig/src/df_knuckles/matrix.c +++ directfb-examples-1.2.0/src/df_knuckles/matrix.c @@ -19,7 +19,7 @@ static float Cosine[3600]; static float Sine[3600]; -#define M_CLEAR(m) bzero(m, MATRIX_SIZE) +#define M_CLEAR(m) memset(m, 0, MATRIX_SIZE) #define M_IDENTITY(m) memcpy(m, IdentityMatrix, MATRIX_SIZE) static void MultiplyMatrix(float *A, float *B)
shibajee/buildroot
package/directfb-examples/0001-remove-bzero.patch
patch
mit
597
config BR2_PACKAGE_DIRECTFB_EXAMPLES bool "directfb examples" depends on BR2_PACKAGE_DIRECTFB help The DirectFB-examples package contains a set of simple DirectFB applications that can be used to test and demonstrate various DirectFB features. http://directfb.org/downloads/Extras/README.DirectFB-examples
shibajee/buildroot
package/directfb-examples/Config.in
in
mit
322
# Locally computed sha256 9a2104cc4da8123c8371813551b66b943198979f745cbebc034bb5e10844122a DirectFB-examples-1.7.0.tar.gz
shibajee/buildroot
package/directfb-examples/directfb-examples.hash
hash
mit
122
################################################################################ # # directfb-examples # ################################################################################ DIRECTFB_EXAMPLES_VERSION = 1.7.0 DIRECTFB_EXAMPLES_SITE = http://www.directfb.org/downloads/Extras DIRECTFB_EXAMPLES_SOURCE = DirectFB-examples-$(DIRECTFB_EXAMPLES_VERSION).tar.gz DIRECTFB_EXAMPLES_LICENSE = MIT DIRECTFB_EXAMPLES_LICENSE_FILES = COPYING DIRECTFB_EXAMPLES_DEPENDENCIES = directfb ifeq ($(BR2_STATIC_LIBS),y) DIRECTFB_EXAMPLES_CONF_OPTS += LIBS=-lstdc++ endif $(eval $(autotools-package))
shibajee/buildroot
package/directfb-examples/directfb-examples.mk
mk
mit
594
The archive of directfb-1.6.3 is still missing some header files against the tagged git tree of directfb. The following files are missing. gfxdrivers/davinci/davinci_c64x.h gfxdrivers/davinci/davincifb.h gfxdrivers/davinci/davinci_gfxdriver.h tests/voodoo/voodoo_test.h The headers of course are needed to be able to build every module of directfb. The headers are taken from the git tree of directfb http://git.directfb.org/?p=core/DirectFB.git;a=commit;h=38b784549bc59bb07c58bb29667cb658695d39a7, tag DIRECTFB_1_6_3, SHA1ID 38b784549bc59bb07c58bb29667cb658695d39a7. Signed-off-by: Carsten Schoenert <c.schoenert@gmail.com> diff -puNr -Naur directfb-1.6.3-orig/gfxdrivers/davinci/davinci_c64x.h directfb-1.6.3/gfxdrivers/davinci/davinci_c64x.h --- directfb-1.6.3-orig/gfxdrivers/davinci/davinci_c64x.h 1970-01-01 01:00:00.000000000 +0100 +++ directfb-1.6.3/gfxdrivers/davinci/davinci_c64x.h 2013-04-07 21:33:25.928530187 +0200 @@ -0,0 +1,935 @@ +/* + TI Davinci driver - C64X+ DSP Library + + (c) Copyright 2008 directfb.org + (c) Copyright 2007 Telio AG + + Written by Denis Oliver Kropp <dok@directfb.org> and + Olaf Dreesen <olaf@directfb.org>. + + All rights reserved. + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License + version 2 as published by the Free Software Foundation. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + General Public License for more details. + + You should have received a copy of the GNU General Public + License along with this library; if not, write to the + Free Software Foundation, Inc., 59 Temple Place - Suite 330, + Boston, MA 02111-1307, USA. +*/ + +#ifndef __DAVINCI_C64X_H__ +#define __DAVINCI_C64X_H__ + +#include <unistd.h> + +#include <directfb.h> + +#include <direct/messages.h> +#include <direct/trace.h> + +#include <linux/c64x.h> + +#define mb() __asm__ __volatile__ ("" : : : "memory") + +/**********************************************************************************************************************/ + +typedef struct { + int magic; + + int fd; + c64xTaskControl *ctl; + void *mem; + + c64xTask *QueueL; +} DavinciC64x; + +typedef struct { + int magic; + unsigned int max_tasks; + unsigned int num_tasks; + c64xTask *tasks; +} DavinciC64xTasks; + +typedef enum { + C64X_TEF_NONE = 0x0000, + C64X_TEF_RESET = 0x0001 +} DavinciC64xEmitFlags; + +/**********************************************************************************************************************/ + +DFBResult davinci_c64x_open ( DavinciC64x *c64x ); + +DFBResult davinci_c64x_close ( DavinciC64x *c64x ); + +DFBResult davinci_c64x_wait_low( DavinciC64x *c64x ); + +/**********************************************************************************************************************/ + +DFBResult davinci_c64x_tasks_init ( DavinciC64xTasks *tasks, + unsigned int size ); + +DFBResult davinci_c64x_tasks_destroy( DavinciC64xTasks *tasks ); + +/**********************************************************************************************************************/ + +DFBResult davinci_c64x_emit_tasks( DavinciC64x *c64x, + DavinciC64xTasks *tasks, + DavinciC64xEmitFlags flags ); + +/**********************************************************************************************************************/ + +static const char *state_names[] = { "DONE", "ERROR", "TODO", "RUNNING" }; + +static inline c64xTask * +c64x_get_task( DavinciC64x *c64x ) +{ + c64xTaskControl *ctl = c64x->ctl; + uint32_t idx = ctl->QL_arm; + uint32_t next = (idx + 1) & C64X_QUEUE_MASK; + c64xTask *task = &c64x->QueueL[idx]; + int loops = 0; + uint32_t idle = 0; + + /* Wait for the entry (and next) to be processed by the DSP (rare case). */ + while (task->c64x_flags & C64X_FLAG_TODO || ctl->QL_dsp == next) { + if (loops > 666 || (idle && ctl->idlecounter - idle > 666)) { + c64xTask *dsp_task = &c64x->QueueL[ctl->QL_dsp]; + + D_PERROR( "Davinci/C64X+: Blocked! [DSP %d / %d (%s), ARM %d / %d (%s)]\n", + ctl->QL_dsp, + (dsp_task->c64x_function >> 2) & 0x3fff, + state_names[dsp_task->c64x_function & 3], + ctl->QL_arm, + (task->c64x_function >> 2) & 0x3fff, + state_names[task->c64x_function & 3] ); + + break; + } + + idle = ctl->idlecounter; + + /* Queue is full, waiting 10-20ms should not be too bad. */ + if (loops++ > 10) + usleep( 5000 ); + } + + return task; +} + +static inline void +c64x_submit_task( DavinciC64x *c64x, c64xTask *task ) +{ + c64xTaskControl *ctl = c64x->ctl; + uint32_t idx = ctl->QL_arm; + uint32_t next = (idx + 1) & C64X_QUEUE_MASK; + + mb(); + + ctl->QL_arm = next; + + mb(); +} + +/**********************************************************************************************************************/ + +static inline void +davinci_c64x_wb_inv_range( DavinciC64x *c64x, + unsigned long start, + u32 length, + u32 func ) +{ + c64xTask *task = c64x_get_task( c64x ); + + task->c64x_arg[0] = start; + task->c64x_arg[1] = length; + task->c64x_arg[2] = func; + + task->c64x_function = C64X_WB_INV_RANGE | C64X_FLAG_TODO; + + c64x_submit_task( c64x, task ); +} + +static inline void +davinci_c64x_write_back_all( DavinciC64x *c64x ) +{ + c64xTask *task = c64x_get_task( c64x ); + + task->c64x_function = C64X_WRITE_BACK_ALL | C64X_FLAG_TODO; + + c64x_submit_task( c64x, task ); +} + +/**********************************************************************************************************************/ + +static inline void +davinci_c64x_load_block__L( DavinciC64xTasks *tasks, + unsigned long words, + u32 num, + u32 flags ) +{ + c64xTask *task = &tasks->tasks[tasks->num_tasks]; + + D_ASSERT( tasks->num_tasks < tasks->max_tasks ); + + task->c64x_arg[0] = words; + task->c64x_arg[1] = num; + task->c64x_arg[2] = flags; + + task->c64x_function = C64X_LOAD_BLOCK | C64X_FLAG_TODO; + + tasks->num_tasks++; +} + +static inline void +davinci_c64x_load_block( DavinciC64x *c64x, + unsigned long words, + u32 num, + u32 flags ) +{ + c64xTask *task = c64x_get_task( c64x ); + + task->c64x_arg[0] = words; + task->c64x_arg[1] = num; + task->c64x_arg[2] = flags; + + task->c64x_function = C64X_LOAD_BLOCK | C64X_FLAG_TODO; + + c64x_submit_task( c64x, task ); +} + +static inline void +davinci_c64x_fetch_uyvy( DavinciC64x *c64x, + unsigned long dest, + unsigned long source, + u32 pitch, + u32 height, + u32 flags ) +{ + c64xTask *task = c64x_get_task( c64x ); + + task->c64x_arg[0] = dest; + task->c64x_arg[1] = source; + task->c64x_arg[2] = pitch; + task->c64x_arg[3] = height; + task->c64x_arg[4] = flags; + + task->c64x_function = C64X_FETCH_UYVY | C64X_FLAG_TODO; + + c64x_submit_task( c64x, task ); +} + +static inline void +davinci_c64x_mc( DavinciC64x *c64x, + unsigned long dest, + u32 dpitch, + unsigned long source0, + unsigned long source1, + u32 spitch, + u32 height, + int func ) +{ + c64xTask *task = c64x_get_task( c64x ); + + task->c64x_arg[0] = dest; + task->c64x_arg[1] = dpitch; + task->c64x_arg[2] = source0; + task->c64x_arg[3] = source1; + task->c64x_arg[4] = spitch; + task->c64x_arg[5] = height; + + task->c64x_function = func | C64X_FLAG_TODO; + + c64x_submit_task( c64x, task ); +} + +static inline void +davinci_c64x_put_idct_uyvy_16x16__L( DavinciC64xTasks *tasks, + unsigned long dest, + u32 pitch, + u32 flags ) +{ + c64xTask *task = &tasks->tasks[tasks->num_tasks]; + + D_ASSERT( tasks->num_tasks < tasks->max_tasks ); + + task->c64x_arg[0] = dest; + task->c64x_arg[1] = pitch; + task->c64x_arg[2] = flags; + + task->c64x_function = C64X_PUT_IDCT_UYVY_16x16 | C64X_FLAG_TODO; + + tasks->num_tasks++; +} + +static inline void +davinci_c64x_put_idct_uyvy_16x16( DavinciC64x *c64x, + unsigned long dest, + u32 pitch, + u32 flags ) +{ + c64xTask *task = c64x_get_task( c64x ); + + task->c64x_arg[0] = dest; + task->c64x_arg[1] = pitch; + task->c64x_arg[2] = flags; + + task->c64x_function = C64X_PUT_IDCT_UYVY_16x16 | C64X_FLAG_TODO; + + c64x_submit_task( c64x, task ); +} + +static inline void +davinci_c64x_put_mc_uyvy_16x16__L( DavinciC64xTasks *tasks, + unsigned long dest, + u32 pitch, + u32 flags ) +{ + c64xTask *task = &tasks->tasks[tasks->num_tasks]; + + D_ASSERT( tasks->num_tasks < tasks->max_tasks ); + + task->c64x_arg[0] = dest; + task->c64x_arg[1] = pitch; + task->c64x_arg[2] = flags; + + task->c64x_function = C64X_PUT_MC_UYVY_16x16 | C64X_FLAG_TODO; + + tasks->num_tasks++; +} + +static inline void +davinci_c64x_put_mc_uyvy_16x16( DavinciC64x *c64x, + unsigned long dest, + u32 pitch, + u32 flags ) +{ + c64xTask *task = c64x_get_task( c64x ); + + task->c64x_arg[0] = dest; + task->c64x_arg[1] = pitch; + task->c64x_arg[2] = flags; + + task->c64x_function = C64X_PUT_MC_UYVY_16x16 | C64X_FLAG_TODO; + + c64x_submit_task( c64x, task ); +} + +static inline void +davinci_c64x_put_sum_uyvy_16x16__L( DavinciC64xTasks *tasks, + unsigned long dest, + u32 pitch, + u32 flags ) +{ + c64xTask *task = &tasks->tasks[tasks->num_tasks]; + + D_ASSERT( tasks->num_tasks < tasks->max_tasks ); + + task->c64x_arg[0] = dest; + task->c64x_arg[1] = pitch; + task->c64x_arg[2] = flags; + + task->c64x_function = C64X_PUT_SUM_UYVY_16x16 | C64X_FLAG_TODO; + + tasks->num_tasks++; +} + +static inline void +davinci_c64x_put_sum_uyvy_16x16( DavinciC64x *c64x, + unsigned long dest, + u32 pitch, + u32 flags ) +{ + c64xTask *task = c64x_get_task( c64x ); + + task->c64x_arg[0] = dest; + task->c64x_arg[1] = pitch; + task->c64x_arg[2] = flags; + + task->c64x_function = C64X_PUT_SUM_UYVY_16x16 | C64X_FLAG_TODO; + + c64x_submit_task( c64x, task ); +} + +static inline void +davinci_c64x_dva_begin_frame__L( DavinciC64xTasks *tasks, + u32 pitch, + unsigned long current, + unsigned long past, + unsigned long future, + u32 flags ) +{ + c64xTask *task = &tasks->tasks[tasks->num_tasks]; + + D_ASSERT( tasks->num_tasks < tasks->max_tasks ); + + task->c64x_arg[0] = pitch; + task->c64x_arg[1] = current; + task->c64x_arg[2] = past; + task->c64x_arg[3] = future; + task->c64x_arg[4] = flags; + + task->c64x_function = C64X_DVA_BEGIN_FRAME | C64X_FLAG_TODO; + + tasks->num_tasks++; +} + +static inline void +davinci_c64x_dva_begin_frame( DavinciC64x *c64x, + u32 pitch, + unsigned long current, + unsigned long past, + unsigned long future, + u32 flags ) +{ + c64xTask *task = c64x_get_task( c64x ); + + task->c64x_arg[0] = pitch; + task->c64x_arg[1] = current; + task->c64x_arg[2] = past; + task->c64x_arg[3] = future; + task->c64x_arg[4] = flags; + + task->c64x_function = C64X_DVA_BEGIN_FRAME | C64X_FLAG_TODO; + + c64x_submit_task( c64x, task ); +} + +static inline void +davinci_c64x_dva_motion_block__L( DavinciC64xTasks *tasks, + unsigned long macroblock ) +{ + c64xTask *task = &tasks->tasks[tasks->num_tasks]; + + D_ASSERT( tasks->num_tasks < tasks->max_tasks ); + + task->c64x_arg[0] = macroblock; + + task->c64x_function = C64X_DVA_MOTION_BLOCK | C64X_FLAG_TODO; + + tasks->num_tasks++; +} + +static inline void +davinci_c64x_dva_motion_block( DavinciC64x *c64x, + unsigned long macroblock ) +{ + c64xTask *task = c64x_get_task( c64x ); + + task->c64x_arg[0] = macroblock; + + task->c64x_function = C64X_DVA_MOTION_BLOCK | C64X_FLAG_TODO; + + c64x_submit_task( c64x, task ); +} + +/**********************************************************************************************************************/ + +static inline void +davinci_c64x_dva_idct( DavinciC64x *c64x, + unsigned long dest, + u32 pitch, + unsigned long source ) +{ + c64xTask *task = c64x_get_task( c64x ); + + task->c64x_arg[0] = dest; + task->c64x_arg[1] = pitch; + task->c64x_arg[2] = source; + + task->c64x_function = C64X_DVA_IDCT | C64X_FLAG_TODO; + + c64x_submit_task( c64x, task ); +} + +/**********************************************************************************************************************/ + +static inline void +davinci_c64x_put_uyvy_16x16( DavinciC64x *c64x, + unsigned long dest, + u32 pitch, + unsigned long source, + u32 flags ) +{ + c64xTask *task = c64x_get_task( c64x ); + + task->c64x_arg[0] = dest; + task->c64x_arg[1] = pitch; + task->c64x_arg[2] = source; + task->c64x_arg[3] = flags; + + task->c64x_function = C64X_PUT_UYVY_16x16 | C64X_FLAG_TODO; + + c64x_submit_task( c64x, task ); +} + +static inline void +davinci_c64x_dither_argb__L( DavinciC64xTasks *tasks, + unsigned long dst_rgb, + unsigned long dst_alpha, + u32 dst_pitch, + unsigned long source, + u32 src_pitch, + u32 width, + u32 height ) +{ + c64xTask *task = &tasks->tasks[tasks->num_tasks]; + + D_ASSERT( tasks->num_tasks < tasks->max_tasks ); + + task->c64x_arg[0] = dst_rgb; + task->c64x_arg[1] = dst_alpha; + task->c64x_arg[2] = dst_pitch; + task->c64x_arg[3] = source; + task->c64x_arg[4] = src_pitch; + task->c64x_arg[5] = width; + task->c64x_arg[6] = height; + + task->c64x_function = C64X_DITHER_ARGB | C64X_FLAG_TODO; + + tasks->num_tasks++; +} + +static inline void +davinci_c64x_dither_argb( DavinciC64x *c64x, + unsigned long dst_rgb, + unsigned long dst_alpha, + u32 dst_pitch, + unsigned long source, + u32 src_pitch, + u32 width, + u32 height ) +{ + c64xTask *task = c64x_get_task( c64x ); + + task->c64x_arg[0] = dst_rgb; + task->c64x_arg[1] = dst_alpha; + task->c64x_arg[2] = dst_pitch; + task->c64x_arg[3] = source; + task->c64x_arg[4] = src_pitch; + task->c64x_arg[5] = width; + task->c64x_arg[6] = height; + + task->c64x_function = C64X_DITHER_ARGB | C64X_FLAG_TODO; + + c64x_submit_task( c64x, task ); +} + +static inline void +davinci_c64x_fill_16__L( DavinciC64xTasks *tasks, + unsigned long dest, + u32 pitch, + u32 width, + u32 height, + u32 value ) +{ + c64xTask *task = &tasks->tasks[tasks->num_tasks]; + + D_ASSERT( tasks->num_tasks < tasks->max_tasks ); + + task->c64x_arg[0] = dest; + task->c64x_arg[1] = pitch; + task->c64x_arg[2] = width; + task->c64x_arg[3] = height; + task->c64x_arg[4] = value; + + task->c64x_function = C64X_FILL_16 | C64X_FLAG_TODO; + + tasks->num_tasks++; +} + +static inline void +davinci_c64x_fill_16( DavinciC64x *c64x, + unsigned long dest, + u32 pitch, + u32 width, + u32 height, + u32 value ) +{ + c64xTask *task = c64x_get_task( c64x ); + + task->c64x_arg[0] = dest; + task->c64x_arg[1] = pitch; + task->c64x_arg[2] = width; + task->c64x_arg[3] = height; + task->c64x_arg[4] = value; + + task->c64x_function = C64X_FILL_16 | C64X_FLAG_TODO; + + c64x_submit_task( c64x, task ); +} + +static inline void +davinci_c64x_fill_32__L( DavinciC64xTasks *tasks, + unsigned long dest, + u32 pitch, + u32 width, + u32 height, + u32 value ) +{ + c64xTask *task = &tasks->tasks[tasks->num_tasks]; + + D_ASSERT( tasks->num_tasks < tasks->max_tasks ); + + task->c64x_arg[0] = dest; + task->c64x_arg[1] = pitch; + task->c64x_arg[2] = width; + task->c64x_arg[3] = height; + task->c64x_arg[4] = value; + + task->c64x_function = C64X_FILL_32 | C64X_FLAG_TODO; + + tasks->num_tasks++; +} + +static inline void +davinci_c64x_fill_32( DavinciC64x *c64x, + unsigned long dest, + u32 pitch, + u32 width, + u32 height, + u32 value ) +{ + c64xTask *task = c64x_get_task( c64x ); + + task->c64x_arg[0] = dest; + task->c64x_arg[1] = pitch; + task->c64x_arg[2] = width; + task->c64x_arg[3] = height; + task->c64x_arg[4] = value; + + task->c64x_function = C64X_FILL_32 | C64X_FLAG_TODO; + + c64x_submit_task( c64x, task ); +} + +static inline void +davinci_c64x_blit_16__L( DavinciC64xTasks *tasks, + unsigned long dest, + u32 dpitch, + unsigned long src, + u32 spitch, + u32 width, + u32 height ) +{ + c64xTask *task = &tasks->tasks[tasks->num_tasks]; + + D_ASSERT( tasks->num_tasks < tasks->max_tasks ); + + task->c64x_arg[0] = dest; + task->c64x_arg[1] = dpitch; + task->c64x_arg[2] = src; + task->c64x_arg[3] = spitch; + task->c64x_arg[4] = width; + task->c64x_arg[5] = height; + + task->c64x_function = C64X_COPY_16 | C64X_FLAG_TODO; + + tasks->num_tasks++; +} + +static inline void +davinci_c64x_blit_16( DavinciC64x *c64x, + unsigned long dest, + u32 dpitch, + unsigned long src, + u32 spitch, + u32 width, + u32 height ) +{ + c64xTask *task = c64x_get_task( c64x ); + + task->c64x_arg[0] = dest; + task->c64x_arg[1] = dpitch; + task->c64x_arg[2] = src; + task->c64x_arg[3] = spitch; + task->c64x_arg[4] = width; + task->c64x_arg[5] = height; + + task->c64x_function = C64X_COPY_16 | C64X_FLAG_TODO; + + c64x_submit_task( c64x, task ); +} + +static inline void +davinci_c64x_blit_32__L( DavinciC64xTasks *tasks, + unsigned long dest, + u32 dpitch, + unsigned long src, + u32 spitch, + u32 width, + u32 height ) +{ + c64xTask *task = &tasks->tasks[tasks->num_tasks]; + + D_ASSERT( tasks->num_tasks < tasks->max_tasks ); + + task->c64x_arg[0] = dest; + task->c64x_arg[1] = dpitch; + task->c64x_arg[2] = src; + task->c64x_arg[3] = spitch; + task->c64x_arg[4] = width; + task->c64x_arg[5] = height; + + task->c64x_function = C64X_COPY_32 | C64X_FLAG_TODO; + + tasks->num_tasks++; +} + +static inline void +davinci_c64x_blit_32( DavinciC64x *c64x, + unsigned long dest, + u32 dpitch, + unsigned long src, + u32 spitch, + u32 width, + u32 height ) +{ + c64xTask *task = c64x_get_task( c64x ); + + task->c64x_arg[0] = dest; + task->c64x_arg[1] = dpitch; + task->c64x_arg[2] = src; + task->c64x_arg[3] = spitch; + task->c64x_arg[4] = width; + task->c64x_arg[5] = height; + + task->c64x_function = C64X_COPY_32 | C64X_FLAG_TODO; + + c64x_submit_task( c64x, task ); +} + +static inline void +davinci_c64x_stretch_32__L( DavinciC64xTasks *tasks, + unsigned long dest, + u32 dpitch, + unsigned long src, + u32 spitch, + u32 dw, + u32 dh, + u32 sw, + u32 sh, + const DFBRegion *clip ) +{ + c64xTask *task = &tasks->tasks[tasks->num_tasks]; + + D_ASSERT( tasks->num_tasks < tasks->max_tasks ); + + task->c64x_arg[0] = dest; + task->c64x_arg[1] = src; + task->c64x_arg[2] = dpitch | (spitch << 16); + task->c64x_arg[3] = dh | (dw << 16); + task->c64x_arg[4] = sh | (sw << 16); + task->c64x_arg[5] = clip->x2 | (clip->y2 << 16); + task->c64x_arg[6] = clip->x1 | (clip->y1 << 16); + + if (sw > dw && sh > dh) + task->c64x_function = C64X_STRETCH_32_down | C64X_FLAG_TODO; + else + task->c64x_function = C64X_STRETCH_32_up | C64X_FLAG_TODO; + + tasks->num_tasks++; +} + +static inline void +davinci_c64x_stretch_32( DavinciC64x *c64x, + unsigned long dest, + u32 dpitch, + unsigned long src, + u32 spitch, + u32 dw, + u32 dh, + u32 sw, + u32 sh, + const DFBRegion *clip ) +{ + c64xTask *task = c64x_get_task( c64x ); + + task->c64x_arg[0] = dest; + task->c64x_arg[1] = src; + task->c64x_arg[2] = dpitch | (spitch << 16); + task->c64x_arg[3] = dh | (dw << 16); + task->c64x_arg[4] = sh | (sw << 16); + task->c64x_arg[5] = clip->x2 | (clip->y2 << 16); + task->c64x_arg[6] = clip->x1 | (clip->y1 << 16); + + if (sw > dw && sh > dh) + task->c64x_function = C64X_STRETCH_32_down | C64X_FLAG_TODO; + else + task->c64x_function = C64X_STRETCH_32_up | C64X_FLAG_TODO; + + c64x_submit_task( c64x, task ); +} + +static inline void +davinci_c64x_blit_blend_32__L( DavinciC64xTasks *tasks, + u32 sub_func, + unsigned long dest, + u32 dpitch, + unsigned long src, + u32 spitch, + u32 width, + u32 height, + u32 argb, + u8 alpha ) +{ + c64xTask *task = &tasks->tasks[tasks->num_tasks]; + + D_ASSERT( tasks->num_tasks < tasks->max_tasks ); + + task->c64x_arg[0] = dest; + task->c64x_arg[1] = dpitch; + task->c64x_arg[2] = src; + task->c64x_arg[3] = spitch; + task->c64x_arg[4] = width | (height << 16); + task->c64x_arg[5] = argb; + task->c64x_arg[6] = alpha; + + task->c64x_function = (sub_func << 16) | C64X_BLEND_32 | C64X_FLAG_TODO; + + tasks->num_tasks++; +} + +static inline void +davinci_c64x_blit_blend_32( DavinciC64x *c64x, + u32 sub_func, + unsigned long dest, + u32 dpitch, + unsigned long src, + u32 spitch, + u32 width, + u32 height, + u32 argb, + u8 alpha ) +{ + c64xTask *task = c64x_get_task( c64x ); + + task->c64x_arg[0] = dest; + task->c64x_arg[1] = dpitch; + task->c64x_arg[2] = src; + task->c64x_arg[3] = spitch; + task->c64x_arg[4] = width | (height << 16); + task->c64x_arg[5] = argb; + task->c64x_arg[6] = alpha; + + task->c64x_function = (sub_func << 16) | C64X_BLEND_32 | C64X_FLAG_TODO; + + c64x_submit_task( c64x, task ); +} + +static inline void +davinci_c64x_blit_keyed_16__L( DavinciC64xTasks *tasks, + unsigned long dest, + u32 dpitch, + unsigned long src, + u32 spitch, + u32 width, + u32 height, + u32 key, + u32 mask ) +{ + c64xTask *task = &tasks->tasks[tasks->num_tasks]; + + D_ASSERT( tasks->num_tasks < tasks->max_tasks ); + + task->c64x_arg[0] = dest; + task->c64x_arg[1] = (dpitch << 16) | (spitch & 0xffff); + task->c64x_arg[2] = src; + task->c64x_arg[3] = width; + task->c64x_arg[4] = height; + task->c64x_arg[5] = key; + task->c64x_arg[6] = mask; + + task->c64x_function = C64X_COPY_KEYED_16 | C64X_FLAG_TODO; + + tasks->num_tasks++; +} + +static inline void +davinci_c64x_blit_keyed_16( DavinciC64x *c64x, + unsigned long dest, + u32 dpitch, + unsigned long src, + u32 spitch, + u32 width, + u32 height, + u32 key, + u32 mask ) +{ + c64xTask *task = c64x_get_task( c64x ); + + task->c64x_arg[0] = dest; + task->c64x_arg[1] = (dpitch << 16) | (spitch & 0xffff); + task->c64x_arg[2] = src; + task->c64x_arg[3] = width; + task->c64x_arg[4] = height; + task->c64x_arg[5] = key; + task->c64x_arg[6] = mask; + + task->c64x_function = C64X_COPY_KEYED_16 | C64X_FLAG_TODO; + + c64x_submit_task( c64x, task ); +} + +static inline void +davinci_c64x_blit_keyed_32__L( DavinciC64xTasks *tasks, + unsigned long dest, + u32 dpitch, + unsigned long src, + u32 spitch, + u32 width, + u32 height, + u32 key, + u32 mask ) +{ + c64xTask *task = &tasks->tasks[tasks->num_tasks]; + + D_ASSERT( tasks->num_tasks < tasks->max_tasks ); + + task->c64x_arg[0] = dest; + task->c64x_arg[1] = (dpitch << 16) | (spitch & 0xffff); + task->c64x_arg[2] = src; + task->c64x_arg[3] = width; + task->c64x_arg[4] = height; + task->c64x_arg[5] = key; + task->c64x_arg[6] = mask; + + task->c64x_function = C64X_COPY_KEYED_32 | C64X_FLAG_TODO; + + tasks->num_tasks++; +} + +static inline void +davinci_c64x_blit_keyed_32( DavinciC64x *c64x, + unsigned long dest, + u32 dpitch, + unsigned long src, + u32 spitch, + u32 width, + u32 height, + u32 key, + u32 mask ) +{ + c64xTask *task = c64x_get_task( c64x ); + + task->c64x_arg[0] = dest; + task->c64x_arg[1] = (dpitch << 16) | (spitch & 0xffff); + task->c64x_arg[2] = src; + task->c64x_arg[3] = width; + task->c64x_arg[4] = height; + task->c64x_arg[5] = key; + task->c64x_arg[6] = mask; + + task->c64x_function = C64X_COPY_KEYED_32 | C64X_FLAG_TODO; + + c64x_submit_task( c64x, task ); +} + +#endif + diff -puNr -Naur directfb-1.6.3-orig/gfxdrivers/davinci/davincifb.h directfb-1.6.3/gfxdrivers/davinci/davincifb.h --- directfb-1.6.3-orig/gfxdrivers/davinci/davincifb.h 1970-01-01 01:00:00.000000000 +0100 +++ directfb-1.6.3/gfxdrivers/davinci/davincifb.h 2013-04-07 21:33:21.488622184 +0200 @@ -0,0 +1,581 @@ +/* + * Copyright (C) 2006 Texas Instruments Inc + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option)any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + * File: davincifb.h + */ + +#ifndef DAVINVI_VPBE_H +#define DAVINVI_VPBE_H + +/* include Linux files */ +#include <linux/fb.h> + +/* define the custom FBIO_WAITFORVSYNC ioctl */ +#define FBIO_WAITFORVSYNC _IOW('F', 0x20, u_int32_t) +#define FBIO_SETATTRIBUTE _IOW('F', 0x21, struct fb_fillrect) + +/* Backported IOCTLS. */ +#define FBIO_SETPOSX _IOW('F', 0x22, u_int32_t) +#define FBIO_SETPOSY _IOW('F', 0x23, u_int32_t) +#define FBIO_SETZOOM _IOW('F', 0x24, struct zoom_params) +#define FBIO_GETSTD _IOR('F', 0x25, u_int32_t) +#define FBIO_RESIZER _IOW('F', 0x26, struct vpfe_resizer_params) +#define FBIO_SYNC _IOW('F', 0x27, u_int32_t) + +typedef struct zoom_params { + u_int32_t window_id; + u_int32_t zoom_h; + u_int32_t zoom_v; +} zoom_params_t; + +typedef struct vpfe_resizer_params +{ + u_int32_t rsz_cnt; //busy-lock + u_int32_t out_size; //busy-lock + u_int32_t in_start; //busy-lock + u_int32_t in_size; //busy-lock + u_int32_t sdr_inadd; //shadowed + u_int32_t sdr_inoff; //shadowed + u_int32_t sdr_outadd; //shadowed + u_int32_t sdr_outoff; //shadowed + u_int32_t hfilt[16]; //busy-lock + u_int32_t vfilt[16]; //busy-lock + u_int32_t yenh; //busy-lock +} vpfe_resizer_params_t; + +typedef struct fb_set_start { + int offset; /* offset from smem_start */ + unsigned long physical; /* absolute physical address when offset < 0 */ + + u_int64_t sync; /* input: target sync counter for change or 0 for no sync at all, + output: sync counter of actual change or 0 if still pending */ +} fb_set_start_t; + + +#ifdef _IOC_TYPECHECK +#undef _IOC_TYPECHECK +#define _IOC_TYPECHECK(x) (sizeof(x)) +#endif + +#define RAM_CLUT_SIZE 256*3 +#define FBIO_ENABLE_DISABLE_WIN \ + _IOW('F', 0x30, unsigned char) +#define FBIO_SET_BITMAP_BLEND_FACTOR \ + _IOW('F', 0x31, vpbe_bitmap_blend_params_t) +#define FBIO_SET_BITMAP_WIN_RAM_CLUT \ + _IOW('F', 0x32, unsigned char)*RAM_CLUT_SIZE) +#define FBIO_ENABLE_DISABLE_ATTRIBUTE_WIN \ + _IOW('F', 0x33, unsigned int) +#define FBIO_GET_BLINK_INTERVAL \ + _IOR('F', 0x34, vpbe_blink_option_t) +#define FBIO_SET_BLINK_INTERVAL \ + _IOW('F', 0x35, vpbe_blink_option_t) +#define FBIO_GET_VIDEO_CONFIG_PARAMS \ + _IOR('F', 0x36, vpbe_video_config_params_t) +#define FBIO_SET_VIDEO_CONFIG_PARAMS \ + _IOW('F', 0x37, vpbe_video_config_params_t) +#define FBIO_GET_BITMAP_CONFIG_PARAMS \ + _IOR('F', 0x38, vpbe_bitmap_config_params_t) +#define FBIO_SET_BITMAP_CONFIG_PARAMS \ + _IOW('F', 0x39, vpbe_bitmap_config_params_t) +#define FBIO_SET_DCLK \ + _IOW('F', 0x40, vpbe_dclk_t) +#define FBIO_SET_INTERFACE \ + _IOW('F', 0x41, unsigned char) +#define FBIO_GET_INTERFACE \ + _IOR('F', 0x42, unsigned char) +#define FBIO_QUERY_TIMING \ + _IOWR('F', 0x43, struct vpbe_mode_info) +#define FBIO_SET_TIMING \ + _IOW('F', 0x44, struct vpbe_fb_videomode) +#define FBIO_GET_TIMING \ + _IOR('F', 0x45, struct vpbe_fb_videomode) +#define FBIO_SET_VENC_CLK_SOURCE \ + _IOW('F', 0x46, unsigned char) +#define FBIO_SET_BACKG_COLOR \ + _IOW('F', 0x47, vpbe_backg_color_t) +#define FBIO_ENABLE_DISPLAY \ + _IOW('F', 0x48, unsigned char) +#define FBIO_SETPOS \ + _IOW('F', 0x49, u_int32_t) +#define FBIO_SET_CURSOR \ + _IOW('F', 0x50, struct fb_cursor) +#define FBIO_SET_START \ + _IOW('F', 0x66, struct fb_set_start) + +/* + * Defines and Constants + */ +#ifdef __KERNEL__ +#define DAVINCIFB_DEVICE "davincifb" +#define DAVINCIFB_DRIVER "davincifb" + +#define MULTIPLE_BUFFERING 1 + +#ifdef MULTIPLE_BUFFERING +#define DOUBLE_BUF 2 +#define TRIPLE_BUF 3 +#else +#define DOUBLE_BUF 1 +#define TRIPLE_BUF 1 +#endif + +/* usage: if (is_win(info->fix.id, OSD0)) ... */ +#define is_win(name, x) ((strcmp(name, x ## _FBNAME) == 0) ? 1 : 0) + +/* + * display controller register I/O routines + */ +u32 dispc_reg_in(u32 offset); +u32 dispc_reg_out(u32 offset, u32 val); +u32 dispc_reg_merge(u32 offset, u32 val, u32 mask); + +#endif /*__KERNEL__*/ + +/* Error return codes */ +#define VPBE_INVALID_PARA_VALUE 700 +#define VPBE_WRONG_WINDOW_ID 701 +#define VPBE_CURRENTLY_IN_REQUIRED_MODE 702 +#define VPBE_INSUFFICIENT_CLUT_VALUES 703 +#define VPBE_CLUT_WRITE_TIMEOUT 704 +#define VPBE_VID0_BUF_ADR_NULL 705 +#define VPBE_WINDOW_NOT_DISABLED 706 +#define VPBE_WINDOW_NOT_ENABLED 707 + +#ifndef __KERNEL__ +/* Window ID definations */ +#define OSD0 0 +#define VID0 1 +#define OSD1 2 +#define VID1 3 +#endif + +/* There are 4 framebuffers, each represented by an fb_info and + * a dm_win_info structure */ +#define OSD0_FBNAME "dm_osd0_fb" +#define OSD1_FBNAME "dm_osd1_fb" +#define VID0_FBNAME "dm_vid0_fb" +#define VID1_FBNAME "dm_vid1_fb" + +/* FIXME: Digital LCD RGB matrix coefficients */ +#define DLCD_DGY_VAL 0 +#define DLCD_DRV_VAL 0 +#define DLCD_DGU_VAL 0 +#define DLCD_DBU_VAL 0 + +/* Defines for bitmap format */ +#define VPBE_BITMAP_BIT_1 1 +#define VPBE_BITMAP_BIT_2 2 +#define VPBE_BITMAP_BIT_4 4 +#define VPBE_BITMAP_BIT_8 8 +#define VPBE_BITMAP_RGB565 16 +#define VPBE_VIDEO_YUV422 16 +#define VPBE_VIDEO_RGB888 24 + +/* Defines foe cursor parameter validation*/ +#define MAX_CURSOR_WIDTH 0x3FF +#define MAX_CURSOR_HEIGHT 0x1FF +#define MAX_CURSOR_LINEWIDTH 7 + +#define BASEX 0x80 +#define BASEY 0x12 +#define BASEX_DLCD 0x59 +#define BASEY_DLCD 0x22 + +/* + * Enumerations + */ +/* Enum for blending factor */ +typedef enum vpbe_blend_factor { + OSD_CONTRIBUTION_ZERO = 0, + OSD_CONTRIBUTION_1_BY_8 = 1, + OSD_CONTRIBUTION_2_BY_8 = 2, + OSD_CONTRIBUTION_3_BY_8 = 3, + OSD_CONTRIBUTION_4_BY_8 = 4, + OSD_CONTRIBUTION_5_BY_8 = 5, + OSD_CONTRIBUTION_6_BY_8 = 6, + OSD_CONTRIBUTION_ONE = 7 +} vpbe_blend_factor_t; + +/* Enum for Boolean variables */ +typedef enum { + SET_0 = 0, + SET_1 = 1 +} CB_CR_ORDER, ATTRIBUTE, ROM_RAM_CLUT; + +/* Defines for Display Interface */ +#define PRGB 0 +#define COMPOSITE 1 +#define SVIDEO 2 +#define COMPONENT 3 +#define RGB 4 +#define YCC16 5 +#define YCC8 6 +#define SRGB 7 +#define EPSON 8 +#define CASIO1G 9 +#define UDISP 10 +#define STN 11 +#define VPBE_MAX_INTERFACES 12 + +/* Defines for Display Mode */ +#define LCD 0 +#define NTSC 1 +#define PAL 2 +#define P525 3 +#define P625 4 + +#define DEFAULT_MODE 0 +#define P480 0 +#define P400 1 +#define P350 2 +#define NON_EXISTING_MODE 255 +/* Enable/Disable enum */ +typedef enum { + VPBE_DISABLE = 0, + VPBE_ENABLE = 1 +} ATTENUATION, TRANSPARENCY, EXPANSION, BLINKING; + +typedef enum clk_source { + CLK_SOURCE_CLK27 = 0, + CLK_SOURCE_CLK54 = 1, + CLK_SOURCE_VPBECLK = 2 +} CLK_SOURCE; + +/* + * Structures and Union Definitions + */ + +/* Structure for transparency and the blending factor for the bitmap window */ +typedef struct vpbe_bitmap_blend_params { + unsigned int colorkey; /* color key to be blend */ + unsigned int enable_colorkeying; /* enable color keying */ + unsigned int bf; /* valid range from 0 to 7 only. */ +} vpbe_bitmap_blend_params_t; + +/* Structure for window expansion */ +typedef struct vpbe_win_expansion { + EXPANSION horizontal; + EXPANSION vertical; /* 1: Enable 0:disable */ +} vpbe_win_expansion_t; + +/* Structure for OSD window blinking options */ +typedef struct vpbe_blink_option { + BLINKING blinking; /* 1: Enable blinking 0: Disable */ + unsigned int interval; /* Valid only if blinking is 1 */ +} vpbe_blink_option_t; + +/* Structure for DCLK parameters */ +typedef struct vpbe_dclk { + unsigned char dclk_pattern_width; + unsigned int dclk_pattern0; + unsigned int dclk_pattern1; + unsigned int dclk_pattern2; + unsigned int dclk_pattern3; +} vpbe_dclk_t; + +/* Structure for display format */ +typedef struct vpbe_display_format { + unsigned char interface; /* Output interface type */ + unsigned char mode; /* output mode */ +} vpbe_display_format_t; + +/* Structure for background color */ +typedef struct vpbe_backg_color { + unsigned char clut_select; /* 2: RAM CLUT 1:ROM1 CLUT 0:ROM0 CLUT */ + unsigned char color_offset; /* index of color */ +} vpbe_backg_color_t; + +/* Structure for Video window configurable parameters */ +typedef struct vpbe_video_config_params { + CB_CR_ORDER cb_cr_order; /*Cb/Cr order in input data for a pixel. */ + /* 0: cb cr 1: cr cb */ + vpbe_win_expansion_t exp_info; /* HZ/VT Expansion enable disable */ +} vpbe_video_config_params_t; + +/*Union of structures giving the CLUT index for the 1, 2, 4 bit bitmap values.*/ +typedef union vpbe_clut_idx { + struct _for_4bit_bimap { + unsigned char bitmap_val_0; + unsigned char bitmap_val_1; + unsigned char bitmap_val_2; + unsigned char bitmap_val_3; + unsigned char bitmap_val_4; + unsigned char bitmap_val_5; + unsigned char bitmap_val_6; + unsigned char bitmap_val_7; + unsigned char bitmap_val_8; + unsigned char bitmap_val_9; + unsigned char bitmap_val_10; + unsigned char bitmap_val_11; + unsigned char bitmap_val_12; + unsigned char bitmap_val_13; + unsigned char bitmap_val_14; + unsigned char bitmap_val_15; + } for_4bit_bimap; + struct _for_2bit_bimap { + unsigned char bitmap_val_0; + unsigned char dummy0[4]; + unsigned char bitmap_val_1; + unsigned char dummy1[4]; + unsigned char bitmap_val_2; + unsigned char dummy2[4]; + unsigned char bitmap_val_3; + } for_2bit_bimap; + struct _for_1bit_bimap { + unsigned char bitmap_val_0; + unsigned char dummy0[14]; + unsigned char bitmap_val_1; + } for_1bit_bimap; +} vpbe_clut_idx_t; + +/* Structure for bitmap window configurable parameters */ +typedef struct vpbe_bitmap_config_params { + /* Only for bitmap width = 1,2,4 bits */ + vpbe_clut_idx_t clut_idx; + /* Attenuation value for YUV o/p for bitmap window */ + unsigned char attenuation_enable; + /* 0: ROM DM270, 1:ROM DM320, 2:RAM CLUT */ + unsigned char clut_select; +} vpbe_bitmap_config_params_t; + +/* Unioun for video/OSD configuration parameters */ +typedef union vpbe_conf_params { + + struct vpbe_video_params { + CB_CR_ORDER cb_cr_order; + /* HZ/VT Expansion enable disable */ + vpbe_win_expansion_t exp_info; + } video_params; + + struct vpbe_bitmap_params { + /* Attenuation value for YUV o/p */ + ATTENUATION attenuation_enable; + /* 0: ROM DM270, 1: ROM DM320, 2:RAM CLUT */ + unsigned char clut_select; + /* Only for bitmap width = 1,2,4 bits */ + vpbe_clut_idx_t clut_idx; + /* 0: OSD window is bitmap window */ + /* 1: OSD window is attribute window */ + ATTRIBUTE enable_attribute; + /* To hold bps value. + Used to switch back from attribute to bitmap. */ + unsigned int stored_bits_per_pixel; + /* Blending information */ + vpbe_bitmap_blend_params_t blend_info; + /* OSD Blinking information */ + vpbe_blink_option_t blink_info; + } bitmap_params; + +} vpbe_conf_params_t; + +typedef struct vpbe_video_params vpbe_video_params_t; +typedef struct vpbe_bitmap_params vpbe_bitmap_params_t; + +/* Structure to hold window position */ +typedef struct vpbe_window_position { + unsigned int xpos; /* X position of the window */ + unsigned int ypos; /* Y position of the window */ +} vpbe_window_position_t; + +#ifdef __KERNEL__ +/* Structure for each window */ +typedef struct vpbe_dm_win_info { + struct fb_info info; + vpbe_window_position_t win_pos; /* X,Y position of window */ + /* Size of window is already there in var_info structure. */ + + dma_addr_t fb_base_phys; /*framebuffer area */ + unsigned int fb_base; /*window memory pointer */ + unsigned int fb_size; /*memory size */ + unsigned int pseudo_palette[17]; + int alloc_fb_mem; + /*flag to identify if framebuffer area is fixed or not */ + unsigned long sdram_address; + struct vpbe_dm_info *dm; + unsigned char window_enable; /*Additions for all windows */ + zoom_params_t zoom; /*Zooming parameters */ + unsigned char field_frame_select; /*To select Field or frame */ + unsigned char numbufs; /*Number of buffers valid 2 or 3 */ + vpbe_conf_params_t conf_params; + /*window configuration parameter union pointer */ +} vpbe_dm_win_info_t; +#endif /*__KERNEL__*/ + +/* + * Videmode structure for display interface and mode settings + */ +typedef struct vpbe_fb_videomode { + unsigned char name[10]; /* Mode name ( NTSC , PAL) */ + unsigned int vmode; /* FB_MODE_INTERLACED or FB_MODE_NON_INTERLACED */ + unsigned int xres; /* X Resolution of the display */ + unsigned int yres; /* Y Resolution of the display */ + unsigned int fps; /* frames per second */ + /* Timing Parameters applicable for std = 0 only */ + unsigned int left_margin; + unsigned int right_margin; + unsigned int upper_margin; + unsigned int lower_margin; + unsigned int hsync_len; + unsigned int vsync_len; + unsigned int sync; /* 0: hsync -ve/vsync -ve */ + /*1: hsync -ve/vsync +ve */ + /*2: hsync +ve/vsync -ve */ + /*3: hsync +ve/vsync +ve */ + unsigned int basepx; /* Display x,y start position */ + unsigned int basepy; +/* 1= Mode s available in modelist 0=Mode is not available in modelist */ + unsigned int std; +} vpbe_fb_videomode_t; + +/* Structure to interface videomode to application*/ +typedef struct vpbe_mode_info { + vpbe_fb_videomode_t vid_mode; + unsigned char interface; + unsigned char mode_idx; +} vpbe_mode_info_t; + +#ifdef __KERNEL__ +/* + * Structure for the driver holding information of windows, + * memory base addresses etc. + */ +typedef struct vpbe_dm_info { + vpbe_dm_win_info_t *osd0; + vpbe_dm_win_info_t *osd1; + vpbe_dm_win_info_t *vid0; + vpbe_dm_win_info_t *vid1; + +/* to map the registers */ + dma_addr_t mmio_base_phys; + unsigned int mmio_base; + unsigned int mmio_size; + + wait_queue_head_t vsync_wait; + unsigned int vsync_cnt; + int timeout; + + /* this is the function that configures the output device (NTSC/PAL/LCD) + * for the required output format (composite/s-video/component/rgb) + */ + void (*output_device_config) (void); + + struct device *dev; + + vpbe_backg_color_t backg; /* background color */ + vpbe_dclk_t dclk; /*DCLK parameters */ + vpbe_display_format_t display; /*Display interface and mode */ + vpbe_fb_videomode_t videomode; /*Cuurent videomode */ + char ram_clut[256][3]; /*RAM CLUT array */ + struct fb_cursor cursor; /* cursor config params from fb.h */ +/*Flag that indicates whether any of the display is enabled or not*/ + int display_enable; +} vpbe_dm_info_t; + +/* + * Functions Definitions for 'davincifb' module + */ +int vpbe_mem_alloc_window_buf(vpbe_dm_win_info_t *); +int vpbe_mem_release_window_buf(vpbe_dm_win_info_t *); +void init_display_function(vpbe_display_format_t *); +int vpbe_mem_alloc_struct(vpbe_dm_win_info_t **); +void set_vid0_default_conf(void); +void set_vid1_default_conf(void); +void set_osd0_default_conf(void); +void set_osd1_default_conf(void); +void set_cursor_default_conf(void); +void set_dm_default_conf(void); +void set_win_enable(char *, unsigned int); +int within_vid0_limits(u32, u32, u32, u32); +void vpbe_set_display_default(void); +#ifdef __KERNEL__ +void set_win_position(char *, u32, u32, u32, u32); +void change_win_param(int); +void set_interlaced(char *, unsigned int); +#endif /* __KERNEL__ */ + +/* + * Function definations for 'osd' module + */ + +int vpbe_enable_window(vpbe_dm_win_info_t *); +int vpbe_disable_window(vpbe_dm_win_info_t *); +int vpbe_vid_osd_select_field_frame(u8 *, u8); +int vpbe_bitmap_set_blend_factor(u8 *, vpbe_bitmap_blend_params_t *); +int vpbe_bitmap_set_ram_clut(void); +int vpbe_enable_disable_attribute_window(u32); +int vpbe_get_blinking(u8 *, vpbe_blink_option_t *); +int vpbe_set_blinking(u8 *, vpbe_blink_option_t *); +int vpbe_set_vid_params(u8 *, vpbe_video_config_params_t *); +int vpbe_get_vid_params(u8 *, vpbe_video_config_params_t *); +int vpbe_bitmap_get_params(u8 *, vpbe_bitmap_config_params_t *); +int vpbe_bitmap_set_params(u8 *, vpbe_bitmap_config_params_t *); +int vpbe_set_cursor_params(struct fb_cursor *); +int vpbe_set_vid_expansion(vpbe_win_expansion_t *); +int vpbe_set_dclk(vpbe_dclk_t *); +int vpbe_set_display_format(vpbe_display_format_t *); +int vpbe_set_backg_color(vpbe_backg_color_t *); +int vpbe_set_interface(u8); +int vpbe_query_mode(vpbe_mode_info_t *); +int vpbe_set_mode(struct vpbe_fb_videomode *); +int vpbe_set_venc_clk_source(u8); +void set_vid0_default_conf(void); +void set_osd0_default_conf(void); +void set_vid1_default_conf(void); +void set_osd1_default_conf(void); +void set_cursor_default_conf(void); +void set_dm_default_conf(void); +/* + * Function definations for 'venc' module + */ + +void davincifb_ntsc_composite_config(void); +void davincifb_ntsc_svideo_config(void); +void davincifb_ntsc_component_config(void); +void davincifb_pal_composite_config(void); +void davincifb_pal_svideo_config(void); +void davincifb_pal_component_config(void); + +void vpbe_davincifb_ntsc_rgb_config(void); +void vpbe_davincifb_pal_rgb_config(void); +void vpbe_davincifb_525p_component_config(void); +void vpbe_davincifb_625p_component_config(void); + +void vpbe_enable_venc(int); +void vpbe_enable_dacs(int); +/* + * Function definations for 'dlcd' module + */ +void vpbe_davincifb_480p_prgb_config(void); +void vpbe_davincifb_400p_prgb_config(void); +void vpbe_davincifb_350p_prgb_config(void); +void vpbe_set_display_timing(struct vpbe_fb_videomode *); + +void vpbe_enable_lcd(int); +/* + * Following functions are not implemented + */ +void vpbe_davincifb_default_ycc16_config(void); +void vpbe_davincifb_default_ycc8_config(void); +void vpbe_davincifb_default_srgb_config(void); +void vpbe_davincifb_default_epson_config(void); +void vpbe_davincifb_default_casio_config(void); +void vpbe_davincifb_default_UDISP_config(void); +void vpbe_davincifb_default_STN_config(void); +#endif /*__KERNEL__*/ + +#endif /* End of #ifndef DAVINCI_VPBE_H */ diff -puNr -Naur directfb-1.6.3-orig/gfxdrivers/davinci/davinci_gfxdriver.h directfb-1.6.3/gfxdrivers/davinci/davinci_gfxdriver.h --- directfb-1.6.3-orig/gfxdrivers/davinci/davinci_gfxdriver.h 1970-01-01 01:00:00.000000000 +0100 +++ directfb-1.6.3/gfxdrivers/davinci/davinci_gfxdriver.h 2013-04-07 21:33:19.560662133 +0200 @@ -0,0 +1,169 @@ +/* + TI Davinci driver - Graphics Driver + + (c) Copyright 2007 Telio AG + + Written by Denis Oliver Kropp <dok@directfb.org> + + Code is derived from VMWare driver. + + (c) Copyright 2001-2009 The world wide DirectFB Open Source Community (directfb.org) + (c) Copyright 2000-2004 Convergence (integrated media) GmbH + + All rights reserved. + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the + Free Software Foundation, Inc., 59 Temple Place - Suite 330, + Boston, MA 02111-1307, USA. +*/ + +#ifndef __DAVINCI_GFXDRIVER_H__ +#define __DAVINCI_GFXDRIVER_H__ + +#include <sys/ioctl.h> +#include <davincifb.h> + +#include <core/surface_buffer.h> + +#include "davincifb.h" + +#include "davinci_c64x.h" + + +typedef struct { + /* validation flags */ + int v_flags; + + /* cached/computed values */ + void *dst_addr; + unsigned long dst_phys; + unsigned int dst_size; + unsigned long dst_pitch; + DFBSurfacePixelFormat dst_format; + unsigned long dst_bpp; + + void *src_addr; + unsigned long src_phys; + unsigned long src_pitch; + DFBSurfacePixelFormat src_format; + unsigned long src_bpp; + + unsigned long source_mult; + + unsigned long fillcolor; + + int blit_blend_sub_function; + int draw_blend_sub_function; + + DFBColor color; + unsigned long color_argb; + unsigned long colorkey; + + DFBSurfaceBlittingFlags blitting_flags; + + DFBRegion clip; + + /** Add shared data here... **/ + struct fb_fix_screeninfo fix[4]; + + CoreSurfacePool *osd_pool; + CoreSurfacePool *video_pool; + + bool synced; +} DavinciDeviceData; + + +typedef struct { + int num; + int fd; + void *mem; + int size; +} DavinciFB; + +typedef struct { + DavinciDeviceData *ddev; + + CoreDFB *core; + + CoreScreen *screen; + CoreLayer *osd; + CoreLayer *video; + + DavinciFB fb[4]; + + DavinciC64x c64x; + bool c64x_present; + + DavinciC64xTasks tasks; +} DavinciDriverData; + + +static inline DFBResult +davincifb_pan_display( const DavinciFB *fb, + struct fb_var_screeninfo *var, + const CoreSurfaceBufferLock *lock, + DFBSurfaceFlipFlags flags, + int x, + int y ) +{ + int ret; + + if (lock) { +#ifdef FBIO_SET_START + CoreSurfaceBuffer *buffer = lock->buffer; + struct fb_set_start set_start; + + /* physical mode */ + set_start.offset = -1; + set_start.sync = (flags & DSFLIP_ONSYNC) ? 1 : 0; + + /* life's so easy */ + set_start.physical = lock->phys + DFB_BYTES_PER_LINE( buffer->format, x ) + y * lock->pitch; + + ret = ioctl( fb->fd, FBIO_SET_START, &set_start ); + if (ret < 0) + D_DEBUG( "FBIO_SET_START (0x%08lx, sync %llu) failed!\n", + set_start.physical, set_start.sync ); + + if (ret == 0) { + if (flags & DSFLIP_WAIT) + ioctl( fb->fd, FBIO_WAITFORVSYNC ); + + return DFB_OK; + } + + /* fallback */ +#endif + var->xoffset = x; /* poor version */ + var->yoffset = y + lock->offset / lock->pitch; + } + else { + var->xoffset = x; + var->yoffset = y; + } + + var->activate = /*(flags & DSFLIP_ONSYNC) ? FB_ACTIVATE_VBL :*/ FB_ACTIVATE_NOW; + + ret = ioctl( fb->fd, FBIOPAN_DISPLAY, var ); + if (ret) + D_PERROR( "Davinci/FB: FBIOPAN_DISPLAY (fb%d - %d,%d) failed!\n", + fb->num, var->xoffset, var->yoffset ); + + if (flags & DSFLIP_WAIT) + ioctl( fb->fd, FBIO_WAITFORVSYNC ); + + return DFB_OK; +} + +#endif diff -puNr -Naur directfb-1.6.3-orig/tests/voodoo/voodoo_test.h directfb-1.6.3/tests/voodoo/voodoo_test.h --- directfb-1.6.3-orig/tests/voodoo/voodoo_test.h 1970-01-01 01:00:00.000000000 +0100 +++ directfb-1.6.3/tests/voodoo/voodoo_test.h 2013-04-07 21:33:31.824408024 +0200 @@ -0,0 +1,10 @@ +#ifndef __VOODOO_TEST_H__ +#define __VOODOO_TEST_H__ + +typedef enum { + VOODOO_TEST_INCREASE, + VOODOO_TEST_QUERY +} VoodooTestCall; + +#endif +
shibajee/buildroot
package/directfb/0001-fix-missing-davinci-voodoo-header.patch
patch
mit
55,846
From 8352c434e515f19dd1ba36256bfcc3ec9480838d Mon Sep 17 00:00:00 2001 From: Peter Seiderer <ps.report@gmx.net> Date: Thu, 5 Mar 2015 22:38:52 +0100 Subject: [PATCH] imlib2 config Call the imlib2-conf variable that are set by ac_cv_path_IMLIB2_CONFIG with the absolute path because the imlib2-config file is not covered by the PATH variable. This is important for cross compiler that need to get the staging settings instead of the host settings. Signed-off-by: Carsten Schoenert <c.schoenert@gmail.com> [ patch configure.in instead of configure to survive autoreconf ] Signed-off-by: Peter Seiderer <ps.report@gmx.net> --- configure.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.in b/configure.in index 38d7e78..fa5e87f 100644 --- a/configure.in +++ b/configure.in @@ -1094,8 +1094,8 @@ if test "x$enable_imlib2" = "xyes"; then AC_MSG_WARN([*** Imlib2 library not found, building without Imlib2 support ***]) imlib2="no" else - IMLIB2_CFLAGS=`imlib2-config --cflags` - IMLIB2_LIBS=`imlib2-config --libs` + IMLIB2_CFLAGS=`$IMLIB2_CONFIG --cflags` + IMLIB2_LIBS=`$IMLIB2_CONFIG --libs` imlib2="yes" fi fi -- 2.1.4
shibajee/buildroot
package/directfb/0002-imlib2-config.patch
patch
mit
1,191
This patch fixes builderrors while using '--with-gfxdrivers' and '--with-inputdrivers' with the current DirectFB version 1.6.3. Patch is taken from http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/dev-libs/DirectFB/files/DirectFB-1.6.3-setregion.patch Signed-off-by: Carsten Schoenert <c.schoenert@gmail.com> Index: b/gfxdrivers/cyber5k/cyber5k.c =================================================================== --- a/gfxdrivers/cyber5k/cyber5k.c +++ b/gfxdrivers/cyber5k/cyber5k.c @@ -640,7 +640,8 @@ CoreLayerRegionConfigFlags updated, CoreSurface *surface, CorePalette *palette, - CoreSurfaceBufferLock *lock ) + CoreSurfaceBufferLock *left_lock, + CoreSurfaceBufferLock *right_lock ) { DFBResult ret; @@ -648,7 +649,7 @@ ret = oldPrimaryFuncs.SetRegion( layer, oldPrimaryDriverData, layer_data, region_data, config, updated, surface, - palette, lock ); + palette, left_lock, right_lock ); if (ret) return ret; Index: b/gfxdrivers/radeon/radeon_crtc1.c =================================================================== --- a/gfxdrivers/radeon/radeon_crtc1.c +++ b/gfxdrivers/radeon/radeon_crtc1.c @@ -147,14 +147,15 @@ CoreLayerRegionConfigFlags updated, CoreSurface *surface, CorePalette *palette, - CoreSurfaceBufferLock *lock ) + CoreSurfaceBufferLock *left_lock, + CoreSurfaceBufferLock *right_lock ) { if (updated & ~CLRCF_OPTIONS) { return OldPrimaryLayerFuncs.SetRegion( layer, OldPrimaryLayerDriverData, layer_data, region_data, - config, updated, surface, palette, lock ); + config, updated, surface, palette, left_lock, right_lock ); } return DFB_OK; Index: b/gfxdrivers/cle266/uc_primary.c =================================================================== --- a/gfxdrivers/cle266/uc_primary.c +++ b/gfxdrivers/cle266/uc_primary.c @@ -142,7 +142,8 @@ CoreLayerRegionConfigFlags updated, CoreSurface *surface, CorePalette *palette, - CoreSurfaceBufferLock *lock ) + CoreSurfaceBufferLock *left_lock, + CoreSurfaceBufferLock *right_lock ) { DFBResult ret; UcDriverData *ucdrv = (UcDriverData*) driver_data; @@ -151,7 +152,7 @@ ret = ucOldPrimaryFuncs.SetRegion( layer, ucOldPrimaryDriverData, layer_data, region_data, config, updated, surface, - palette, lock ); + palette, left_lock, right_lock ); if (ret) return ret; Index: b/gfxdrivers/unichrome/uc_primary.c =================================================================== --- a/gfxdrivers/unichrome/uc_primary.c +++ b/gfxdrivers/unichrome/uc_primary.c @@ -139,7 +139,8 @@ CoreLayerRegionConfigFlags updated, CoreSurface *surface, CorePalette *palette, - CoreSurfaceBufferLock *lock ) + CoreSurfaceBufferLock *left_lock, + CoreSurfaceBufferLock *right_lock ) { DFBResult ret; UcDriverData *ucdrv = (UcDriverData*) driver_data; @@ -148,7 +149,7 @@ ret = ucOldPrimaryFuncs.SetRegion( layer, ucOldPrimaryDriverData, layer_data, region_data, config, updated, surface, - palette, lock ); + palette, left_lock, right_lock ); if (ret) return ret;
shibajee/buildroot
package/directfb/0003-setregion-lock.patch
patch
mit
4,283
Add patch to use 'gcc' instead of 'ld' for linking The patch has been sent upstream but it has not been merged yet Signed-off-by: Markos Chandras <markos.chandras@imgtec.com> From 176ce06b40897a357fe76a558af517197325f188 Mon Sep 17 00:00:00 2001 From: Markos Chandras <markos.chandras@imgtec.com> Date: Wed, 28 Aug 2013 10:56:32 +0100 Subject: [PATCH] rules/libobject.make: Use gcc for linking Invoking 'ld' directly may miss some necessary linker flags which are usually passed by gcc. Therefore, use gcc for linking. Signed-off-by: Markos Chandras <markos.chandras@imgtec.com> --- rules/libobject.make | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rules/libobject.make b/rules/libobject.make index bc670da..2cba658 100644 --- a/rules/libobject.make +++ b/rules/libobject.make @@ -3,7 +3,7 @@ if test -d $<.tmp; then rmdir $<.tmp; fi mkdir $<.tmp (cd $<.tmp && $(AR) x ../../$<) - $(LD) -o $@ -r $<.tmp/*.o + $(CC) -nostdlib -o $@ -r $<.tmp/*.o rm -f $<.tmp/*.o && rmdir $<.tmp .PHONY: $(LTLIBRARIES:%.la=.libs/%.a) -- 1.8.3.2
shibajee/buildroot
package/directfb/0004-use-gcc-link.patch
patch
mit
1,069
Add idivine.h, which is missing from DirectFB tarballs The idivine.h file was taken from the DirectFB Git repository. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Index: b/lib/divine/idivine.h =================================================================== --- /dev/null +++ b/lib/divine/idivine.h @@ -0,0 +1,54 @@ +/* + (c) Copyright 2012-2013 DirectFB integrated media GmbH + (c) Copyright 2001-2013 The world wide DirectFB Open Source Community (directfb.org) + (c) Copyright 2000-2004 Convergence (integrated media) GmbH + + All rights reserved. + + Written by Denis Oliver Kropp <dok@directfb.org>, + Andreas Shimokawa <andi@directfb.org>, + Marek Pikarski <mass@directfb.org>, + Sven Neumann <neo@directfb.org>, + Ville Syrjälä <syrjala@sci.fi> and + Claudio Ciccani <klan@users.sf.net>. + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the + Free Software Foundation, Inc., 59 Temple Place - Suite 330, + Boston, MA 02111-1307, USA. +*/ + + + +#ifndef __IDIVINE_H__ +#define __IDIVINE_H__ + +#include <divine.h> + +/* + * private data struct of IDiVine + */ +typedef struct { + int ref; /* reference counter */ + + DiVine *divine; +} IDiVine_data; + +/* + * IDiVine constructor/destructor + */ +DFBResult IDiVine_Construct( IDiVine *thiz ); + +void IDiVine_Destruct ( IDiVine *thiz ); + +#endif
shibajee/buildroot
package/directfb/0005-add-missing-idivine-header.patch
patch
mit
2,084
config BR2_PACKAGE_DIRECTFB bool "directfb" depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL depends on BR2_INSTALL_LIBSTDCPP depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_5 depends on !BR2_TOOLCHAIN_USES_MUSL # sigval_t issue depends on BR2_TOOLCHAIN_HAS_SYNC_4 select BR2_PACKAGE_FREETYPE select BR2_PACKAGE_ZLIB help DirectFB (Direct Frame Buffer) is a set of graphics APIs implemented on top of the Linux Frame Buffer (fbdev) abstraction layer. It is an alternative to X11 with a smaller memory footprint that still has an integrated windowing system. As of 4 October 2015, DirectFB's website http://www.directfb.org/ is down. See alternative site listed below. http://elinux.org/DirectFB if BR2_PACKAGE_DIRECTFB config BR2_PACKAGE_DIRECTFB_MULTI bool "directfb multi application" select BR2_PACKAGE_LINUX_FUSION depends on BR2_USE_MMU # madvise() depends on BR2_LINUX_KERNEL help Enable use of multiple concurrent DirectFB applications comment "directfb multi application needs a Linux kernel to be built" depends on !BR2_LINUX_KERNEL config BR2_PACKAGE_DIRECTFB_DEBUG_SUPPORT bool "directfb debugging support" default y help Compile DirectFB with debugging support. It provides functions to print debug information, for DirectFB as well as external DirectFB drivers. When disabled, DirectFB does not print any debug information. The drivers will be installed to and loaded from /usr/lib/directfb-<version>-pure instead of /usr/lib/directfb-<version>. config BR2_PACKAGE_DIRECTFB_DEBUG bool "directfb debugging" depends on BR2_PACKAGE_DIRECTFB_DEBUG_SUPPORT help Compile DirectFB with lots of debug output config BR2_PACKAGE_DIRECTFB_TRACE bool "directfb call trace support" help Enable call tracing for DirectFB applications config BR2_PACKAGE_DIRECTFB_DIVINE bool "divine" help Enable the DiVine feature (virtual input) config BR2_PACKAGE_DIRECTFB_SAWMAN bool "sawman" help Enable the SawMan feature (window manager) config BR2_PACKAGE_DIRECTFB_ATI128 bool "compile ati128 graphics driver" depends on BR2_i386 || BR2_x86_64 config BR2_PACKAGE_DIRECTFB_MATROX bool "compile matrox graphics driver" depends on BR2_i386 || BR2_x86_64 config BR2_PACKAGE_DIRECTFB_PXA3XX bool "compile pxa3xx graphics driver" depends on BR2_arm help The Marvell PXA3xx Processor Family is a system-on-chip based on XScale® microarchitecture. This option enables the graphic driver support for the PXA3xx processor family. http://www.marvell.com/application-processors/pxa-family/ config BR2_PACKAGE_DIRECTFB_EP9X bool "compile ep9x graphics driver" depends on BR2_arm help Enable the graphic driver support for the EP93xx ARMv9 based processors from Cirrus Logic. http://cirrus.com/en/products/arm9.html config BR2_PACKAGE_DIRECTFB_I830 bool "compile i830 graphics driver" depends on BR2_i386 || BR2_x86_64 config BR2_PACKAGE_DIRECTFB_LINUXINPUT bool "compile /dev/input/eventX input driver" default y config BR2_PACKAGE_DIRECTFB_KEYBOARD bool "compile keyboard input driver" default y config BR2_PACKAGE_DIRECTFB_PS2MOUSE bool "compile PS2 mouse input driver" default y config BR2_PACKAGE_DIRECTFB_SERIALMOUSE bool "compile serial mouse input driver" default y config BR2_PACKAGE_DIRECTFB_TSLIB bool "enable touchscreen support" depends on !BR2_STATIC_LIBS # tslib default y select BR2_PACKAGE_TSLIB comment "touchscreen support needs a toolchain w/ dynamic library" depends on BR2_STATIC_LIBS config BR2_PACKAGE_DIRECTFB_GIF bool "enable GIF support" default y config BR2_PACKAGE_DIRECTFB_TIFF bool "enable TIFF support" select BR2_PACKAGE_TIFF config BR2_PACKAGE_DIRECTFB_IMLIB2 bool "enable IMLIB2 support" select BR2_PACKAGE_IMLIB2 depends on !BR2_STATIC_LIBS comment "imlib2 support needs a toolchain w/ dynamic library" depends on BR2_STATIC_LIBS config BR2_PACKAGE_DIRECTFB_JPEG bool "enable JPEG support" default y select BR2_PACKAGE_JPEG config BR2_PACKAGE_DIRECTFB_PNG bool "enable PNG support" default y select BR2_PACKAGE_LIBPNG config BR2_PACKAGE_DIRECTFB_SVG bool "enable SVG support" default y select BR2_PACKAGE_LIBSVG_CAIRO config BR2_PACKAGE_DIRECTFB_DITHER_RGB16 bool "enable advanced dithering of RGB16 surfaces" help Enable dithering when loading images to RGB16 surfaces. This increases the data section by 64 KBytes. config BR2_PACKAGE_DIRECTFB_TESTS bool "build directfb tests" endif # BR2_PACKAGE_DIRECTFB comment "directfb needs a glibc or uClibc toolchain w/ C++, NPTL, gcc >= 4.5" depends on BR2_TOOLCHAIN_HAS_SYNC_4 depends on !BR2_TOOLCHAIN_HAS_THREADS_NPTL || !BR2_INSTALL_LIBSTDCPP || \ !BR2_TOOLCHAIN_GCC_AT_LEAST_4_5 || BR2_TOOLCHAIN_USES_MUSL
shibajee/buildroot
package/directfb/Config.in
in
mit
4,743
# Locally computed sha256 b785c638dc31b8fe3a7c81be1475c89b2255ab3d67b777c747d3fbc52f8027a3 DirectFB-1.7.7.tar.gz
shibajee/buildroot
package/directfb/directfb.hash
hash
mit
113
################################################################################ # # directfb # ################################################################################ DIRECTFB_VERSION_MAJOR = 1.7 DIRECTFB_VERSION = $(DIRECTFB_VERSION_MAJOR).7 DIRECTFB_SITE = http://www.directfb.org/downloads/Core/DirectFB-$(DIRECTFB_VERSION_MAJOR) DIRECTFB_SOURCE = DirectFB-$(DIRECTFB_VERSION).tar.gz DIRECTFB_LICENSE = LGPLv2.1+ DIRECTFB_LICENSE_FILES = COPYING DIRECTFB_INSTALL_STAGING = YES DIRECTFB_AUTORECONF = YES DIRECTFB_CONF_OPTS = \ --enable-zlib \ --enable-freetype \ --enable-fbdev \ --disable-sdl \ --disable-vnc \ --disable-osx \ --disable-video4linux \ --disable-video4linux2 \ --without-tools \ --disable-x11 ifeq ($(BR2_STATIC_LIBS),y) DIRECTFB_CONF_OPTS += --disable-dynload endif DIRECTFB_CONFIG_SCRIPTS = directfb-config DIRECTFB_DEPENDENCIES = freetype zlib ifeq ($(BR2_PACKAGE_DIRECTFB_MULTI),y) DIRECTFB_CONF_OPTS += --enable-multi --enable-multi-kernel DIRECTFB_DEPENDENCIES += linux-fusion else DIRECTFB_CONF_OPTS += --disable-multi --disable-multi-kernel endif ifeq ($(BR2_PACKAGE_DIRECTFB_DEBUG_SUPPORT),y) DIRECTFB_CONF_OPTS += --enable-debug-support ifeq ($(BR2_PACKAGE_DIRECTFB_DEBUG),y) DIRECTFB_CONF_OPTS += --enable-debug endif else DIRECTFB_CONF_OPTS += --disable-debug-support endif ifeq ($(BR2_PACKAGE_DIRECTFB_TRACE),y) DIRECTFB_CONF_OPTS += --enable-trace endif ifeq ($(BR2_PACKAGE_DIRECTFB_DIVINE),y) DIRECTFB_CONF_OPTS += --enable-divine else DIRECTFB_CONF_OPTS += --disable-divine endif ifeq ($(BR2_PACKAGE_DIRECTFB_SAWMAN),y) DIRECTFB_CONF_OPTS += --enable-sawman else DIRECTFB_CONF_OPTS += --disable-sawman endif DIRECTFB_GFX = \ $(if $(BR2_PACKAGE_DIRECTFB_ATI128),ati128) \ $(if $(BR2_PACKAGE_DIRECTFB_CYBER5K),cyber5k) \ $(if $(BR2_PACKAGE_DIRECTFB_MATROX),matrox) \ $(if $(BR2_PACKAGE_DIRECTFB_PXA3XX),pxa3xx) \ $(if $(BR2_PACKAGE_DIRECTFB_I830),i830) \ $(if $(BR2_PACKAGE_DIRECTFB_EP9X),ep9x) ifeq ($(strip $(DIRECTFB_GFX)),) DIRECTFB_CONF_OPTS += --with-gfxdrivers=none else DIRECTFB_CONF_OPTS += \ --with-gfxdrivers=$(subst $(space),$(comma),$(strip $(DIRECTFB_GFX))) endif DIRECTFB_INPUT = \ $(if $(BR2_PACKAGE_DIRECTFB_LINUXINPUT),linuxinput) \ $(if $(BR2_PACKAGE_DIRECTFB_KEYBOARD),keyboard) \ $(if $(BR2_PACKAGE_DIRECTFB_PS2MOUSE),ps2mouse) \ $(if $(BR2_PACKAGE_DIRECTFB_SERIALMOUSE),serialmouse) \ $(if $(BR2_PACKAGE_DIRECTFB_TSLIB),tslib) ifeq ($(BR2_PACKAGE_DIRECTFB_TSLIB),y) DIRECTFB_DEPENDENCIES += tslib endif ifeq ($(strip $(DIRECTFB_INPUT)),) DIRECTFB_CONF_OPTS += --with-inputdrivers=none else DIRECTFB_CONF_OPTS += \ --with-inputdrivers=$(subst $(space),$(comma),$(strip $(DIRECTFB_INPUT))) endif ifeq ($(BR2_PACKAGE_DIRECTFB_GIF),y) DIRECTFB_CONF_OPTS += --enable-gif else DIRECTFB_CONF_OPTS += --disable-gif endif ifeq ($(BR2_PACKAGE_DIRECTFB_TIFF),y) DIRECTFB_CONF_OPTS += --enable-tiff DIRECTFB_DEPENDENCIES += tiff else DIRECTFB_CONF_OPTS += --disable-tiff endif ifeq ($(BR2_PACKAGE_DIRECTFB_PNG),y) DIRECTFB_CONF_OPTS += --enable-png DIRECTFB_DEPENDENCIES += libpng DIRECTFB_CONF_ENV += ac_cv_path_LIBPNG_CONFIG=$(STAGING_DIR)/usr/bin/libpng-config else DIRECTFB_CONF_OPTS += --disable-png endif ifeq ($(BR2_PACKAGE_DIRECTFB_JPEG),y) DIRECTFB_CONF_OPTS += --enable-jpeg DIRECTFB_DEPENDENCIES += jpeg else DIRECTFB_CONF_OPTS += --disable-jpeg endif ifeq ($(BR2_PACKAGE_DIRECTFB_SVG),y) DIRECTFB_CONF_OPTS += --enable-svg # needs some help to find cairo includes DIRECTFB_CONF_ENV += CPPFLAGS="$(TARGET_CPPFLAGS) -I$(STAGING_DIR)/usr/include/cairo" DIRECTFB_DEPENDENCIES += libsvg-cairo else DIRECTFB_CONF_OPTS += --disable-svg endif ifeq ($(BR2_PACKAGE_DIRECTFB_IMLIB2),y) DIRECTFB_CONF_OPTS += --enable-imlib2 DIRECTFB_DEPENDENCIES += imlib2 DIRECTFB_CONF_ENV += ac_cv_path_IMLIB2_CONFIG=$(STAGING_DIR)/usr/bin/imlib2-config else DIRECTFB_CONF_OPTS += --disable-imlib2 endif ifeq ($(BR2_PACKAGE_DIRECTFB_DITHER_RGB16),y) DIRECTFB_CONF_OPTS += --with-dither-rgb16=advanced else DIRECTFB_CONF_OPTS += --with-dither-rgb16=none endif ifeq ($(BR2_PACKAGE_DIRECTFB_TESTS),y) DIRECTFB_CONF_OPTS += --with-tests endif HOST_DIRECTFB_DEPENDENCIES = host-pkgconf host-libpng HOST_DIRECTFB_CONF_OPTS = \ --disable-multi \ --enable-png \ --with-gfxdrivers=none \ --with-inputdrivers=none HOST_DIRECTFB_BUILD_CMDS = \ $(MAKE) -C $(@D)/tools directfb-csource HOST_DIRECTFB_INSTALL_CMDS = \ $(INSTALL) -m 0755 $(@D)/tools/directfb-csource $(HOST_DIR)/usr/bin $(eval $(autotools-package)) $(eval $(host-autotools-package)) # directfb-csource for the host DIRECTFB_HOST_BINARY = $(HOST_DIR)/usr/bin/directfb-csource
shibajee/buildroot
package/directfb/directfb.mk
mk
mit
4,622
Without -fPIC, dmalloc does not build with: /home/test/mips-4.4/bin/mips-linux-gnu-ld --sysroot=/home/test/outputs/test-35/staging -shared --whole-archive -soname libdmallocxx.so -o libdmallocxx.so.t libdmallocxx.a /home/test/mips-4.4/bin/mips-linux-gnu-ld: libdmalloc.a(arg_check.o): relocation R_MIPS_HI16 against `_dmalloc_flags' can not be used when making a shared object; recompile with -fPIC libdmalloc.a(arg_check.o): could not read symbols: Bad value This patch, taken from http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/dev-libs/dmalloc/files/dmalloc-5.2.4-fpic.patch?hideattic=0&view=markup, fixes the problem by passing the -fPIC flag. It isn't passed through the ./configure environment in order to not clutter the configuration cache with incorrect values. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> --- Makefile.in | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) --- a/Makefile.in +++ b/Makefile.in @@ -318,17 +318,17 @@ # special _th versions of objects with the LOCK_THREADS variable defined to 1 chunk_th.o : $(srcdir)/chunk.c rm -f $@ - $(CC) $(CFLAGS) $(CPPFLAGS) $(DEFS) $(INCS) -DLOCK_THREADS=1 \ + $(CC) $(CFLAGS) -fPIC $(CPPFLAGS) $(DEFS) $(INCS) -DLOCK_THREADS=1 \ -c $(srcdir)/chunk.c -o ./$@ error_th.o : $(srcdir)/error.c rm -f $@ - $(CC) $(CFLAGS) $(CPPFLAGS) $(DEFS) $(INCS) -DLOCK_THREADS=1 \ + $(CC) $(CFLAGS) -fPIC $(CPPFLAGS) $(DEFS) $(INCS) -DLOCK_THREADS=1 \ -c $(srcdir)/error.c -o ./$@ malloc_th.o : $(srcdir)/malloc.c rm -f $@ - $(CC) $(CFLAGS) $(CPPFLAGS) $(DEFS) $(INCS) -DLOCK_THREADS=1 \ + $(CC) $(CFLAGS) -fPIC $(CPPFLAGS) $(DEFS) $(INCS) -DLOCK_THREADS=1 \ -c $(srcdir)/malloc.c -o ./$@ tests : $(TEST) $(TEST_FC) @@ -360,7 +360,7 @@ .c.o : rm -f $@ - $(CC) $(CFLAGS) $(CPPFLAGS) $(DEFS) $(INCS) -c $< -o ./$@ + $(CC) $(CFLAGS) -fPIC $(CPPFLAGS) $(DEFS) $(INCS) -c $< -o ./$@ # # .cc.o auto-target doesn't work on some systems. @@ -368,7 +368,7 @@ # dmallocc.o : $(srcdir)/dmallocc.cc rm -f $@ - $(CXX) $(CFLAGS) $(CPPFLAGS) $(DEFS) $(INCS) -c $(srcdir)/dmallocc.cc \ + $(CXX) $(CFLAGS) -fPIC $(CPPFLAGS) $(DEFS) $(INCS) -c $(srcdir)/dmallocc.cc \ -o ./$@ #
shibajee/buildroot
package/dmalloc/0001-add-fpic.patch
patch
mit
2,209
--- a/configure +++ b/configure @@ -7107,7 +7107,7 @@ echo $ECHO_N "checking return.h macros work... $ECHO_C" >&6 if test "$cross_compiling" = yes; then cat >>confdefs.h <<\_ACEOF -#define RETURN_MACROS_WORK 0 +#define RETURN_MACROS_WORK 1 _ACEOF echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 --- a/return.h +++ b/return.h @@ -106,26 +106,16 @@ /*************************************/ /* - * For DEC Mips machines running Ultrix + * For Mips machines running Linux */ #if __mips /* - * I have no idea how to get inline assembly with the default cc. - * Anyone know how? - */ - -#if 0 - -/* * NOTE: we assume here that file is global. * - * $31 is the frame pointer. $2 looks to be the return address but maybe - * not consistently. + * $31 is the return address. */ -#define GET_RET_ADDR(file) asm("sw $2, file") - -#endif +#define GET_RET_ADDR(file) asm("sw $31, %0" : "=m" (file)) #endif /* __mips */
shibajee/buildroot
package/dmalloc/0002-mips.patch
patch
mit
950
Fix parallel build issue Missing dmallocc.o <- dmalloc.h dependency may break parallel builds. dmalloc.h is generated,and may not be around by the time gcc starts parsing dmallocc.cc. Signed-off-by: Alex Suykov <alex.suykov@gmail.com> --- a/Makefile.in +++ b/Makefile.in @@ -401,6 +401,7 @@ compat.o: compat.c conf.h settings.h dmalloc.h compat.h dmalloc_loc.h dmalloc.o: dmalloc.c conf.h settings.h dmalloc_argv.h dmalloc.h compat.h \ debug_tok.h dmalloc_loc.h env.h error_val.h version.h +dmallocc.o: dmallocc.cc dmalloc.h return.h conf.h settings.h dmalloc_argv.o: dmalloc_argv.c conf.h settings.h dmalloc_argv.h \ dmalloc_argv_loc.h compat.h dmalloc_fc_t.o: dmalloc_fc_t.c conf.h settings.h dmalloc.h dmalloc_argv.h \
shibajee/buildroot
package/dmalloc/0003-fix-parallel-build.patch
patch
mit
735
Fix shared library rules dmalloc uses ld -shared --whole-archive -o lib.so lib.a, but for some reason lists regular objects in addition to the archive, ending up with two copies of each symbol. Signed-off-by: Alex Suykov <alex.suykov@gmail.com> --- a/Makefile.in +++ b/Makefile.in @@ -257,7 +257,7 @@ shlib : $(BUILD_SL) # via: http://256.com/gray/email.html $(LIB_SL) : $(LIBRARY) rm -f $@ $@.t - @shlinkargs@ $(LIBRARY) $(OBJS) $(NORMAL_OBJS) + @shlinkargs@ $(LIBRARY) mv $@.t $@ $(LIBRARY) : $(OBJS) $(NORMAL_OBJS) @@ -270,7 +270,7 @@ $(LIB_TH) : $(OBJS) $(THREAD_OBJS) $(LIB_TH_SL) : $(LIB_TH) rm -f $@ $@.t - @shlinkargs@ $(LIB_TH) $(OBJS) $(THREAD_OBJS) + @shlinkargs@ $(LIB_TH) mv $@.t $@ $(LIB_CXX) : $(OBJS) $(NORMAL_OBJS) $(CXX_OBJS) @@ -279,7 +279,7 @@ $(LIB_CXX) : $(OBJS) $(NORMAL_OBJS) $(CXX_OBJS) $(LIB_CXX_SL) : $(LIB_CXX) rm -f $@ $@.t - @shlinkargs@ $(LIB_CXX) $(OBJS) $(NORMAL_OBJS) $(CXX_OBJS) + @shlinkargs@ $(LIB_CXX) mv $@.t $@ $(LIB_TH_CXX) : $(OBJS) $(THREAD_OBJS) $(CXX_OBJS) @@ -288,7 +288,7 @@ $(LIB_TH_CXX) : $(OBJS) $(THREAD_OBJS) $(CXX_OBJS) $(LIB_TH_CXX_SL) : $(LIB_TH_CXX) rm -f $@ $@.t - @shlinkargs@ $(LIB_TH_CXX) $(OBJS) $(THREAD_OBJS) $(CXX_OBJS) + @shlinkargs@ $(LIB_TH_CXX) mv $@.t $@ threadssl : $(LIB_TH_SL)
shibajee/buildroot
package/dmalloc/0004-fix-shlibs.patch
patch
mit
1,291
config BR2_PACKAGE_DMALLOC bool "dmalloc" # On some packages, Microblaze gcc has issues when debugging # symbols are enabled: "Error: operation combines symbols in # different segments". depends on !(BR2_microblaze && BR2_ENABLE_DEBUG) help A debug memory allocation library which is a drop in replacement for the system's malloc, realloc, calloc, free and other memory management routines while providing powerful debugging facilities configurable at runtime. http://dmalloc.com/
shibajee/buildroot
package/dmalloc/Config.in
in
mit
503
# Locally computed: sha256 d3be5c6eec24950cb3bd67dbfbcdf036f1278fae5fd78655ef8cdf9e911e428a dmalloc-5.5.2.tgz
shibajee/buildroot
package/dmalloc/dmalloc.hash
hash
mit
110
################################################################################ # # dmalloc # ################################################################################ DMALLOC_VERSION = 5.5.2 DMALLOC_SOURCE = dmalloc-$(DMALLOC_VERSION).tgz DMALLOC_SITE = http://dmalloc.com/releases DMALLOC_LICENSE = MIT-like # license is in each file, dmalloc.h.1 is the smallest one DMALLOC_LICENSE_FILES = dmalloc.h.1 DMALLOC_INSTALL_STAGING = YES DMALLOC_CONF_OPTS = --enable-shlib DMALLOC_CFLAGS = $(TARGET_CFLAGS) ifeq ($(BR2_INSTALL_LIBSTDCPP),y) DMALLOC_CONF_OPTS += --enable-cxx else DMALLOC_CONF_OPTS += --disable-cxx endif ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y) DMALLOC_CONF_OPTS += --enable-threads else DMALLOC_CONF_OPTS += --disable-threads endif # dmalloc has some assembly function that are not present in thumb1 mode: # Error: lo register required -- `str lr,[sp,#4]' # so, we desactivate thumb mode ifeq ($(BR2_ARM_INSTRUCTIONS_THUMB),y) DMALLOC_CFLAGS += -marm endif DMALLOC_CONF_ENV = CFLAGS="$(DMALLOC_CFLAGS)" define DMALLOC_POST_PATCH $(SED) 's/^ac_cv_page_size=0$$/ac_cv_page_size=12/' $(@D)/configure $(SED) 's/(ld -/($${LD-ld} -/' $(@D)/configure $(SED) 's/'\''ld -/"$${LD-ld}"'\'' -/' $(@D)/configure $(SED) 's/ar cr/$$(AR) cr/' $(@D)/Makefile.in endef DMALLOC_POST_PATCH_HOOKS += DMALLOC_POST_PATCH # both DESTDIR and PREFIX are ignored.. define DMALLOC_INSTALL_STAGING_CMDS $(MAKE) includedir="$(STAGING_DIR)/usr/include" \ bindir="$(STAGING_DIR)/usr/bin" \ libdir="$(STAGING_DIR)/usr/lib" \ shlibdir="$(STAGING_DIR)/usr/lib" \ infodir="$(STAGING_DIR)/usr/share/info/" \ -C $(@D) install endef ifeq ($(BR2_STATIC_LIBS),) define DMALLOC_INSTALL_SHARED_LIB cp -dpf $(STAGING_DIR)/usr/lib/libdmalloc*.so $(TARGET_DIR)/usr/lib endef endif define DMALLOC_INSTALL_TARGET_CMDS $(DMALLOC_INSTALL_SHARED_LIB) cp -dpf $(STAGING_DIR)/usr/bin/dmalloc $(TARGET_DIR)/usr/bin/dmalloc endef $(eval $(autotools-package))
shibajee/buildroot
package/dmalloc/dmalloc.mk
mk
mit
1,955
Minor build system fixes Usual build system fixes to allow CC/CFLAGS/LDFLAGS to be overriden from the command line, and completed by additional flags from the Makefile. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Index: b/Makefile =================================================================== --- a/Makefile +++ b/Makefile @@ -12,9 +12,10 @@ # (at your option) any later version. # -CC = gcc -CFLAGS = -W -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual \ - -Wcast-align -Wwrite-strings -Wmissing-prototypes -Winline -Wundef +CC ?= gcc +override CFLAGS += \ + -W -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual \ + -Wcast-align -Wwrite-strings -Wmissing-prototypes -Winline -Wundef # Let lseek and mmap support 64-bit wide offsets CFLAGS += -D_FILE_OFFSET_BITS=64 @@ -27,7 +28,7 @@ CFLAGS += -O2 #CFLAGS += -g # Pass linker flags here -LDFLAGS = +override LDFLAGS += DESTDIR = prefix = /usr/local
shibajee/buildroot
package/dmidecode/0001-build-system-fixes.patch
patch
mit
1,008
config BR2_PACKAGE_DMIDECODE bool "dmidecode" depends on BR2_i386 || BR2_x86_64 help Dmidecode reports information about your system's hardware as described in your system BIOS according to the SMBIOS/DMI standard. http://www.nongnu.org/dmidecode/
shibajee/buildroot
package/dmidecode/Config.in
in
mit
264
# http://http.debian.net/debian/pool/main/d/dmidecode/dmidecode_3.0-2.dsc sha256 7ec35bb193729c1d593a1460b59d82d24b89102ab23fd0416e6cf4325d077e45 dmidecode-3.0.tar.xz
shibajee/buildroot
package/dmidecode/dmidecode.hash
hash
mit
167
################################################################################ # # dmidecode # ################################################################################ DMIDECODE_VERSION = 3.0 DMIDECODE_SOURCE = dmidecode-$(DMIDECODE_VERSION).tar.xz DMIDECODE_SITE = http://download.savannah.gnu.org/releases/dmidecode DMIDECODE_LICENSE = GPLv2+ DMIDECODE_LICENSE_FILES = LICENSE define DMIDECODE_BUILD_CMDS $(MAKE) -C $(@D) $(TARGET_CONFIGURE_OPTS) endef define DMIDECODE_INSTALL_TARGET_CMDS $(MAKE) -C $(@D) prefix=/usr DESTDIR=$(TARGET_DIR) install endef $(eval $(generic-package))
shibajee/buildroot
package/dmidecode/dmidecode.mk
mk
mit
600
From 89c7fc15e064dd407e6d5ccefe78985b86b8a036 Mon Sep 17 00:00:00 2001 From: Brendan Heading <brendanheading@gmail.com> Date: Tue, 1 Sep 2015 12:26:36 +0100 Subject: [PATCH 1/1] fix compilation under musl Patch borrowed from Void Linux : https://github.com/voidlinux/void-packages/blob/master/srcpkgs/dmraid/patches/25_musl-libc.patch Upstream package appears dormant, no mailing list and no maintainence releases since Nov 2010. Upstream-Status: dormant Signed-off-by: Brendan Heading <brendanheading@gmail.com> --- 1.0.0.rc16-3/dmraid/include/dmraid/misc.h | 1 + 1.0.0.rc16-3/dmraid/lib/device/scan.c | 1 + 2 files changed, 2 insertions(+) diff --git a/1.0.0.rc16-3/dmraid/include/dmraid/misc.h b/1.0.0.rc16-3/dmraid/include/dmraid/misc.h index 247a68e..1b1dfdf 100644 --- a/1.0.0.rc16-3/dmraid/include/dmraid/misc.h +++ b/1.0.0.rc16-3/dmraid/include/dmraid/misc.h @@ -10,6 +10,7 @@ #ifndef _MISC_H_ #define _MISC_H_ +#include <fcntl.h> #define DM_ASSERT(__cond) do { if (!(__cond)) { printf("ASSERT file:%s line:%d fuction:%s cond: %s\n", __FILE__, __LINE__, __FUNCTION__, #__cond); } } while(0); diff --git a/1.0.0.rc16-3/dmraid/lib/device/scan.c b/1.0.0.rc16-3/dmraid/lib/device/scan.c index a040d53..6897146 100644 --- a/1.0.0.rc16-3/dmraid/lib/device/scan.c +++ b/1.0.0.rc16-3/dmraid/lib/device/scan.c @@ -10,6 +10,7 @@ # include <dirent.h> # include <paths.h> #else +# include <paths.h> # include <dirent.h> # include <mntent.h> #endif -- 2.4.3
shibajee/buildroot
package/dmraid/0001-fix-compilation-under-musl.patch
patch
mit
1,483
config BR2_PACKAGE_DMRAID bool "dmraid" depends on BR2_TOOLCHAIN_HAS_THREADS # lvm2 depends on BR2_USE_MMU # lvm2 depends on !BR2_STATIC_LIBS # lvm2 select BR2_PACKAGE_LVM2 help dmraid discovers, activates, deactivates and displays properties of software RAID sets (eg, ATARAID) and contained DOS partitions. dmraid uses the Linux device-mapper to create devices with respective mappings for the ATARAID sets discovered. comment "dmraid needs a toolchain w/ threads, dynamic library" depends on BR2_USE_MMU depends on BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HAS_THREADS
shibajee/buildroot
package/dmraid/Config.in
in
mit
586
#!/bin/sh set -e [ -x /usr/sbin/dmraid ] || exit 0 # try to load module in case that hasn't been done yet modprobe dm-mod >/dev/null 2>&1 case "$1" in start|"") echo "Setting up DMRAID devices..." /usr/sbin/dmraid --activate yes --ignorelocking --verbose ;; stop) echo "Shutting down DMRAID devices... " /usr/sbin/dmraid --activate no --ignorelocking --verbose ;; restart|force-reload) $0 stop sleep 1 $0 start ;; *) echo "Usage: dmraid {start|stop|restart|force-reload}" exit 1 ;; esac
shibajee/buildroot
package/dmraid/S20dmraid
none
mit
524
# From http://people.redhat.com/~heinzm/sw/dmraid/src/dmraid-1.0.0.rc16-3.tar.bz2.md5.sum md5 819338fcef98e8e25819f0516722beeb dmraid-1.0.0.rc16-3.tar.bz2
shibajee/buildroot
package/dmraid/dmraid.hash
hash
mit
155
################################################################################ # # dmraid # ################################################################################ DMRAID_VERSION = 1.0.0.rc16-3 DMRAID_SOURCE = dmraid-$(DMRAID_VERSION).tar.bz2 DMRAID_SITE = http://people.redhat.com/~heinzm/sw/dmraid/src DMRAID_SUBDIR = $(DMRAID_VERSION)/dmraid # lib and tools race with parallel make DMRAID_MAKE = $(MAKE1) DMRAID_INSTALL_STAGING = YES DMRAID_LICENSE = GPLv2 DMRAID_LICENSE_FILES = $(DMRAID_SUBDIR)/LICENSE_GPL $(DMRAID_SUBDIR)/LICENSE DMRAID_DEPENDENCIES = lvm2 define DMRAID_INSTALL_INIT_SYSV $(INSTALL) -D -m 0755 package/dmraid/S20dmraid \ $(TARGET_DIR)/etc/init.d/S20dmraid endef $(eval $(autotools-package))
shibajee/buildroot
package/dmraid/dmraid.mk
mk
mit
733
config BR2_PACKAGE_DNSMASQ bool "dnsmasq" help A lightweight DNS and DHCP server. It is intended to provide coupled DNS and DHCP service to a LAN. http://www.thekelleys.org.uk/dnsmasq/ if BR2_PACKAGE_DNSMASQ config BR2_PACKAGE_DNSMASQ_TFTP bool "tftp support" default y help Enable TFTP support in dnsmasq. config BR2_PACKAGE_DNSMASQ_DHCP bool "dhcp support" default y help Enable DHCP server support in dnsmasq. config BR2_PACKAGE_DNSMASQ_DNSSEC bool "DNSSEC support" select BR2_PACKAGE_GMP select BR2_PACKAGE_NETTLE help Enable DNSSEC validation and caching support. config BR2_PACKAGE_DNSMASQ_IDN bool "IDN support" depends on BR2_USE_WCHAR select BR2_PACKAGE_LIBIDN select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT_IF_LOCALE help Enable IDN support in dnsmasq. This option is a big space taker since it pulls in many libraries. config BR2_PACKAGE_DNSMASQ_LUA bool "Lua scripting support" depends on BR2_PACKAGE_LUA help Enable Lua scripting for dnsmasq config BR2_PACKAGE_DNSMASQ_CONNTRACK bool "conntrack marking support" select BR2_PACKAGE_LIBNETFILTER_CONNTRACK help Enable DNS query connection marking in netfilter. endif
shibajee/buildroot
package/dnsmasq/Config.in
in
mit
1,191
#!/bin/sh [ -x /usr/sbin/dnsmasq ] || exit 0 [ -f /etc/dnsmasq.conf ] || exit 0 case "$1" in start) printf "Starting dnsmasq: " start-stop-daemon -S -x /usr/sbin/dnsmasq [ $? = 0 ] && echo "OK" || echo "FAIL" ;; stop) printf "Stopping dnsmasq: " start-stop-daemon -K -q -x /usr/sbin/dnsmasq [ $? = 0 ] && echo "OK" || echo "FAIL" ;; restart|reload) $0 stop $0 start ;; *) echo "Usage: $0 {start|stop|restart}" exit 1 esac exit 0
shibajee/buildroot
package/dnsmasq/S80dnsmasq
none
mit
462
# Locally calculated after checking pgp signature sha256 4b92698dee19ca0cb2a8f2e48f1d2dffd01a21eb15d1fbed4cf085630c8c9f96 dnsmasq-2.76.tar.xz
shibajee/buildroot
package/dnsmasq/dnsmasq.hash
hash
mit
142
################################################################################ # # dnsmasq # ################################################################################ DNSMASQ_VERSION = 2.76 DNSMASQ_SOURCE = dnsmasq-$(DNSMASQ_VERSION).tar.xz DNSMASQ_SITE = http://thekelleys.org.uk/dnsmasq DNSMASQ_MAKE_ENV = $(TARGET_MAKE_ENV) CC="$(TARGET_CC)" DNSMASQ_MAKE_OPTS = COPTS="$(DNSMASQ_COPTS)" PREFIX=/usr CFLAGS="$(TARGET_CFLAGS)" DNSMASQ_MAKE_OPTS += DESTDIR=$(TARGET_DIR) LDFLAGS="$(TARGET_LDFLAGS)" DNSMASQ_DEPENDENCIES = host-pkgconf DNSMASQ_LICENSE = GPLv2 or GPLv3 DNSMASQ_LICENSE_FILES = COPYING COPYING-v3 ifneq ($(BR2_PACKAGE_DNSMASQ_DHCP),y) DNSMASQ_COPTS += -DNO_DHCP endif ifeq ($(BR2_PACKAGE_DNSMASQ_DNSSEC),y) DNSMASQ_DEPENDENCIES += gmp nettle DNSMASQ_COPTS += -DHAVE_DNSSEC ifeq ($(BR2_STATIC_LIBS),y) DNSMASQ_COPTS += -DHAVE_DNSSEC_STATIC endif endif ifneq ($(BR2_PACKAGE_DNSMASQ_TFTP),y) DNSMASQ_COPTS += -DNO_TFTP endif # NLS requires IDN so only enable it (i18n) when IDN is true ifeq ($(BR2_PACKAGE_DNSMASQ_IDN),y) DNSMASQ_DEPENDENCIES += libidn $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext) host-gettext DNSMASQ_MAKE_OPTS += LIBS+="$(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),-lintl)" DNSMASQ_COPTS += -DHAVE_IDN DNSMASQ_I18N = $(if $(BR2_ENABLE_LOCALE),-i18n) endif ifeq ($(BR2_PACKAGE_DNSMASQ_CONNTRACK),y) DNSMASQ_DEPENDENCIES += libnetfilter_conntrack endif ifeq ($(BR2_PACKAGE_DNSMASQ_CONNTRACK),y) define DNSMASQ_ENABLE_CONNTRACK $(SED) 's^.*#define HAVE_CONNTRACK.*^#define HAVE_CONNTRACK^' \ $(DNSMASQ_DIR)/src/config.h endef endif ifeq ($(BR2_PACKAGE_DNSMASQ_LUA),y) DNSMASQ_DEPENDENCIES += lua # liblua uses dlopen when dynamically linked ifneq ($(BR2_STATIC_LIBS),y) DNSMASQ_MAKE_OPTS += LIBS+="-ldl" endif define DNSMASQ_ENABLE_LUA $(SED) 's/lua5.1/lua/g' $(DNSMASQ_DIR)/Makefile $(SED) 's^.*#define HAVE_LUASCRIPT.*^#define HAVE_LUASCRIPT^' \ $(DNSMASQ_DIR)/src/config.h endef endif ifeq ($(BR2_PACKAGE_DBUS),y) DNSMASQ_DEPENDENCIES += dbus endif define DNSMASQ_FIX_PKGCONFIG $(SED) 's^PKG_CONFIG = pkg-config^PKG_CONFIG = $(PKG_CONFIG_HOST_BINARY)^' \ $(DNSMASQ_DIR)/Makefile endef ifeq ($(BR2_PACKAGE_DBUS),y) define DNSMASQ_ENABLE_DBUS $(SED) 's^.*#define HAVE_DBUS.*^#define HAVE_DBUS^' \ $(DNSMASQ_DIR)/src/config.h endef else define DNSMASQ_ENABLE_DBUS $(SED) 's^.*#define HAVE_DBUS.*^/* #define HAVE_DBUS */^' \ $(DNSMASQ_DIR)/src/config.h endef endif define DNSMASQ_BUILD_CMDS $(DNSMASQ_FIX_PKGCONFIG) $(DNSMASQ_ENABLE_DBUS) $(DNSMASQ_ENABLE_LUA) $(DNSMASQ_ENABLE_CONNTRACK) $(DNSMASQ_MAKE_ENV) $(MAKE) -C $(@D) $(DNSMASQ_MAKE_OPTS) all$(DNSMASQ_I18N) endef ifeq ($(BR2_PACKAGE_DBUS),y) define DNSMASQ_INSTALL_DBUS $(INSTALL) -m 0644 -D $(@D)/dbus/dnsmasq.conf \ $(TARGET_DIR)/etc/dbus-1/system.d/dnsmasq.conf endef endif define DNSMASQ_INSTALL_TARGET_CMDS $(DNSMASQ_MAKE_ENV) $(MAKE) -C $(@D) $(DNSMASQ_MAKE_OPTS) install$(DNSMASQ_I18N) mkdir -p $(TARGET_DIR)/var/lib/misc/ $(DNSMASQ_INSTALL_DBUS) endef define DNSMASQ_INSTALL_INIT_SYSV $(INSTALL) -m 755 -D package/dnsmasq/S80dnsmasq \ $(TARGET_DIR)/etc/init.d/S80dnsmasq endef $(eval $(generic-package))
shibajee/buildroot
package/dnsmasq/dnsmasq.mk
mk
mit
3,145
# we can't use suitable-host-package here because that's not available in # the context of 'make release' asciidoc-check-dependencies: $(Q)if [ -z "$(shell support/dependencies/check-host-asciidoc.sh)" ]; then \ echo "You need a sufficiently recent asciidoc on your host" \ "to generate documents"; \ exit 1; \ fi $(Q)if [ -z "`which w3m 2>/dev/null`" ]; then \ echo "You need w3m on your host to generate documents"; \ exit 1; \ fi asciidoc-check-dependencies-pdf: $(Q)if [ -z "`which dblatex 2>/dev/null`" ]; then \ echo "You need dblatex on your host to generate PDF documents"; \ exit 1; \ fi # PDF generation is broken because of a bug in xsltproc program provided # by libxslt <=1.1.28, which does not honor an option we need to set. # Fortunately, this bug is already fixed upstream: # https://gitorious.org/libxslt/libxslt/commit/5af7ad745323004984287e48b42712e7305de35c # # So, bail out when trying to build a PDF using a buggy version of the # xsltproc program. # # So, to overcome this issue and being able to build a PDF, you can # build xsltproc from its source repository, then run: # $ PATH=/path/to/custom-xsltproc/bin:${PATH} make manual GENDOC_XSLTPROC_IS_BROKEN = \ $(shell xsltproc --maxvars 0 >/dev/null 2>/dev/null || echo y) # Apply this configuration to all documents BR_ASCIIDOC_CONF = docs/conf/asciidoc.conf ################################################################################ # ASCIIDOC_INNER -- generates the make targets needed to build a specific type of # asciidoc documentation. # # argument 1 is the name of the document and the top-level asciidoc file must # have the same name # argument 2 is the uppercase name of the document # argument 3 is the directory containing the document # argument 4 is the type of document to generate (-f argument of a2x) # argument 5 is the document type as used in the make target # argument 6 is the output file extension for the document type # argument 7 is the human text for the document type # argument 8 (optional) are extra arguments for a2x # # The variable <DOCUMENT_NAME>_SOURCES defines the dependencies. # # Since this function will be called from within an $(eval ...) # all variable references except the arguments must be $$-quoted. ################################################################################ define ASCIIDOC_INNER $(1): $(1)-$(5) .PHONY: $(1)-$(5) $(1)-$(5): $$(O)/docs/$(1)/$(1).$(6) # Single line, because splitting a foreach is not easy... asciidoc-check-dependencies-$(5): $(1)-check-dependencies-$(5): asciidoc-check-dependencies-$(5) $$(Q)$$(foreach hook,$$($(2)_CHECK_DEPENDENCIES_$$(call UPPERCASE,$(5))_HOOKS),$$(call $$(hook))$$(sep)) # Include Buildroot's AsciiDoc configuration first: # - generic configuration, # - then output-specific configuration ifneq ($$(wildcard $$(BR_ASCIIDOC_CONF)),) $(2)_$(4)_ASCIIDOC_OPTS += -f $$(BR_ASCIIDOC_CONF) endif BR_$(4)_ASCIIDOC_CONF = docs/conf/asciidoc-$(4).conf ifneq ($$(wildcard $$(BR_$(4)_ASCIIDOC_CONF)),) $(2)_$(4)_ASCIIDOC_OPTS += -f $$(BR_$(4)_ASCIIDOC_CONF) endif # Then include the document's AsciiDoc configuration: # - generic configuration, # - then output-specific configuration ifneq ($$(wildcard $$($(2)_ASCIIDOC_CONF)),) $(2)_$(4)_ASCIIDOC_OPTS += -f $$($(2)_ASCIIDOC_CONF) endif $(2)_$(4)_ASCIIDOC_CONF = $(3)/asciidoc-$(4).conf ifneq ($$(wildcard $$($(2)_$(4)_ASCIIDOC_CONF)),) $(2)_$(4)_ASCIIDOC_OPTS += -f $$($(2)_$(4)_ASCIIDOC_CONF) endif # Handle a2x warning about --destination-dir option only applicable to HTML # based outputs. So: # - use the --destination-dir option if possible (html and split-html), # - otherwise copy the generated document to the output directory $(2)_$(4)_A2X_OPTS = ifneq ($$(filter $(5),html split-html),) $(2)_$(4)_A2X_OPTS += --destination-dir="$$(@D)" else define $(2)_$(4)_INSTALL_CMDS $$(Q)cp -f $$(BUILD_DIR)/docs/$(1)/$(1).$(6) $$(@D) endef endif $$(O)/docs/$(1)/$(1).$(6): export TZ=UTC ifeq ($(6)-$$(GENDOC_XSLTPROC_IS_BROKEN),pdf-y) $$(O)/docs/$(1)/$(1).$(6): $$(warning PDF generation is disabled because of a bug in \ xsltproc. To be able to generate a PDF, you should \ build xsltproc from the libxslt sources >=1.1.29 and pass it \ to make through the command line: \ 'PATH=/path/to/custom-xsltproc/bin:$$$${PATH} make $(1)-pdf') else # -r $(@D) is there for documents that use external filters; those filters # generate code at the same location it finds the document's source files. $$(O)/docs/$(1)/$(1).$(6): $$($(2)_SOURCES) \ $(1)-check-dependencies \ $(1)-check-dependencies-$(5) \ $(1)-prepare-sources $$(Q)$$(call MESSAGE,"Generating $(7) $(1)...") $$(Q)mkdir -p $$(@D) $$(Q)a2x $(8) -f $(4) -d book -L \ $$(foreach r,$$($(2)_RESOURCES) $$(@D), \ --resource="$$(abspath $$(r))") \ $$($(2)_$(4)_A2X_OPTS) \ --asciidoc-opts="$$($(2)_$(4)_ASCIIDOC_OPTS)" \ $$(BUILD_DIR)/docs/$(1)/$(1).txt # install the generated document $$($(2)_$(4)_INSTALL_CMDS) endif endef ################################################################################ # ASCIIDOC -- generates the make targets needed to build asciidoc documentation. # # argument 1 is the lowercase name of the document; the document's main file # must have the same name, with the .txt extension # argument 2 is the uppercase name of the document # argument 3 is the directory containing the document's sources # # The variable <DOCUMENT_NAME>_SOURCES defines the dependencies. # The variable <DOCUMENT_NAME>_RESOURCES defines where the document's # resources, such as images, are located; must be an absolute path. ################################################################################ define ASCIIDOC # Single line, because splitting a foreach is not easy... $(1)-check-dependencies: asciidoc-check-dependencies $$(Q)$$(foreach hook,$$($(2)_CHECK_DEPENDENCIES_HOOKS),$$(call $$(hook))$$(sep)) # Single line, because splitting a foreach is not easy... # Do not touch the stamp file, so we get to rsync again every time we build # the document. $$(BUILD_DIR)/docs/$(1)/.stamp_doc_rsynced: $$(Q)$$(call MESSAGE,"Preparing the $(1) sources...") $$(Q)mkdir -p $$(@D) $$(Q)rsync -a $(3) $$(@D) $$(Q)$$(foreach hook,$$($(2)_POST_RSYNC_HOOKS),$$(call $$(hook))$$(sep)) $(1)-prepare-sources: $$(BUILD_DIR)/docs/$(1)/.stamp_doc_rsynced $(2)_ASCIIDOC_CONF = $(3)/asciidoc.conf $(call ASCIIDOC_INNER,$(1),$(2),$(3),xhtml,html,html,HTML,\ --xsltproc-opts "--stringparam toc.section.depth 1") $(call ASCIIDOC_INNER,$(1),$(2),$(3),chunked,split-html,chunked,split HTML,\ --xsltproc-opts "--stringparam toc.section.depth 1") # dblatex needs to pass the '--maxvars ...' option to xsltproc to prevent it # from reaching the template recursion limit when processing the (long) target # package table and bailing out. $(call ASCIIDOC_INNER,$(1),$(2),$(3),pdf,pdf,pdf,PDF,\ --dblatex-opts "-P latex.output.revhistory=0 -x '--maxvars 100000'") $(call ASCIIDOC_INNER,$(1),$(2),$(3),text,text,text,text) $(call ASCIIDOC_INNER,$(1),$(2),$(3),epub,epub,epub,ePUB) clean: $(1)-clean $(1)-clean: $$(Q)$$(RM) -rf $$(BUILD_DIR)/docs/$(1) .PHONY: $(1) $(1)-clean endef ################################################################################ # asciidoc-document -- the target generator macro for asciidoc documents ################################################################################ asciidoc-document = $(call ASCIIDOC,$(pkgname),$(call UPPERCASE,$(pkgname)),$(pkgdir))
shibajee/buildroot
package/doc-asciidoc.mk
mk
mit
7,526
config BR2_PACKAGE_DOCKER_CONTAINERD bool "docker-containerd" depends on BR2_PACKAGE_HOST_GO_ARCH_SUPPORTS depends on BR2_PACKAGE_HOST_GO_CGO_LINKING_SUPPORTS depends on BR2_TOOLCHAIN_HAS_THREADS depends on BR2_USE_MMU # util-linux depends on BR2_USE_WCHAR # util-linux select BR2_PACKAGE_RUNC # runtime dependency select BR2_PACKAGE_UTIL_LINUX # runtime dependency select BR2_PACKAGE_UTIL_LINUX_BINARIES select BR2_PACKAGE_UTIL_LINUX_PIVOT_ROOT select BR2_PACKAGE_UTIL_LINUX_MOUNTPOINT select BR2_PACKAGE_UTIL_LINUX_MOUNT help containerd is a daemon to control runC. https://github.com/docker/containerd comment "docker-containerd needs a toolchain w/ threads, wchar" depends on BR2_PACKAGE_HOST_GO_ARCH_SUPPORTS depends on BR2_PACKAGE_HOST_GO_CGO_LINKING_SUPPORTS depends on BR2_USE_MMU depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_USE_WCHAR
shibajee/buildroot
package/docker-containerd/Config.in
in
mit
870
# Computed locally sha256 5c1bcd8e3b7bc6034e7523b6eca7de974562b7fdc72c440494234ae10a0e545b docker-containerd-0ac3cd1be170d180b2baed755e8f0da547ceb267.tar.gz
shibajee/buildroot
package/docker-containerd/docker-containerd.hash
hash
mit
158
################################################################################ # # docker-containerd # ################################################################################ DOCKER_CONTAINERD_VERSION = 0ac3cd1be170d180b2baed755e8f0da547ceb267 DOCKER_CONTAINERD_SITE = $(call github,docker,containerd,$(DOCKER_CONTAINERD_VERSION)) DOCKER_CONTAINERD_LICENSE = Apache-2.0 DOCKER_CONTAINERD_LICENSE_FILES = LICENSE.code DOCKER_CONTAINERD_DEPENDENCIES = host-go DOCKER_CONTAINERD_GOPATH = "$(@D)/vendor" DOCKER_CONTAINERD_MAKE_ENV = $(HOST_GO_TARGET_ENV) \ CGO_ENABLED=1 \ GOBIN="$(@D)/bin" \ GOPATH="$(DOCKER_CONTAINERD_GOPATH)" DOCKER_CONTAINERD_GLDFLAGS = \ -X github.com/docker/containerd.GitCommit=$(DOCKER_CONTAINERD_VERSION) ifeq ($(BR2_STATIC_LIBS),y) DOCKER_CONTAINERD_GLDFLAGS += -extldflags '-static' endif define DOCKER_CONTAINERD_CONFIGURE_CMDS mkdir -p $(DOCKER_CONTAINERD_GOPATH)/src/github.com/docker ln -s $(@D) $(DOCKER_CONTAINERD_GOPATH)/src/github.com/docker/containerd mkdir -p $(DOCKER_CONTAINERD_GOPATH)/src/github.com/opencontainers ln -s $(RUNC_SRCDIR) $(DOCKER_CONTAINERD_GOPATH)/src/github.com/opencontainers/runc endef define DOCKER_CONTAINERD_BUILD_CMDS $(foreach d,ctr containerd containerd-shim,\ cd $(@D); $(DOCKER_CONTAINERD_MAKE_ENV) $(HOST_DIR)/usr/bin/go build \ -v -o $(@D)/bin/$(d) -ldflags "$(DOCKER_CONTAINERD_GLDFLAGS)" ./$(d)$(sep)) endef define DOCKER_CONTAINERD_INSTALL_TARGET_CMDS ln -fs runc $(TARGET_DIR)/usr/bin/docker-runc $(INSTALL) -D -m 0755 $(@D)/bin/containerd $(TARGET_DIR)/usr/bin/docker-containerd $(INSTALL) -D -m 0755 $(@D)/bin/containerd-shim $(TARGET_DIR)/usr/bin/containerd-shim ln -fs containerd-shim $(TARGET_DIR)/usr/bin/docker-containerd-shim endef $(eval $(generic-package))
shibajee/buildroot
package/docker-containerd/docker-containerd.mk
mk
mit
1,776
From 8d6f2e3fe8851b581309da25fc4c32f8be675932 Mon Sep 17 00:00:00 2001 From: Brian Goff <cpuguy83@gmail.com> Date: Mon, 11 Jul 2016 16:31:42 -0400 Subject: [PATCH] Fix issues with tailing rotated jsonlog file Fixes a race where the log reader would get events for both an actual rotation as we from fsnotify (`fsnotify.Rename`). This issue becomes extremely apparent when rotations are fast, for example: ``` $ docker run -d --name test --log-opt max-size=1 --log-opt max-file=2 busybox sh -c 'while true; do echo hello; usleep 100000; done' ``` With this change the log reader for jsonlogs can handle rotations that happen as above. Instead of listening for both fs events AND rotation events simultaneously, potentially meaning we see 2 rotations for only a single rotation due to channel buffering, only listen for fs events (like `Rename`) and then wait to be notified about rotation by the logger. This makes sure that we don't see 2 rotations for 1, and that we don't start trying to read until the logger is actually ready for us to. Signed-off-by: Brian Goff <cpuguy83@gmail.com> This commit is pending upstream commit fixing broken log tailing. The original commit can be found in the PR here: - https://github.com/docker/docker/pull/24514 Signed-off-by: Christian Stewart <christian@paral.in> --- daemon/logger/jsonfilelog/read.go | 180 +++++++++++++++++++++++++------------- 1 file changed, 119 insertions(+), 61 deletions(-) diff --git a/daemon/logger/jsonfilelog/read.go b/daemon/logger/jsonfilelog/read.go index bea83dd..0cb44af 100644 --- a/daemon/logger/jsonfilelog/read.go +++ b/daemon/logger/jsonfilelog/read.go @@ -3,11 +3,14 @@ package jsonfilelog import ( "bytes" "encoding/json" + "errors" "fmt" "io" "os" "time" + "gopkg.in/fsnotify.v1" + "github.com/Sirupsen/logrus" "github.com/docker/docker/daemon/logger" "github.com/docker/docker/pkg/filenotify" @@ -44,6 +47,10 @@ func (l *JSONFileLogger) ReadLogs(config logger.ReadConfig) *logger.LogWatcher { func (l *JSONFileLogger) readLogs(logWatcher *logger.LogWatcher, config logger.ReadConfig) { defer close(logWatcher.Msg) + // lock so the read stream doesn't get corrupted do to rotations or other log data written while we read + // This will block writes!!! + l.mu.Lock() + pth := l.writer.LogPath() var files []io.ReadSeeker for i := l.writer.MaxFiles(); i > 1; i-- { @@ -61,6 +68,7 @@ func (l *JSONFileLogger) readLogs(logWatcher *logger.LogWatcher, config logger.R latestFile, err := os.Open(pth) if err != nil { logWatcher.Err <- err + l.mu.Unlock() return } @@ -80,6 +88,7 @@ func (l *JSONFileLogger) readLogs(logWatcher *logger.LogWatcher, config logger.R if err := latestFile.Close(); err != nil { logrus.Errorf("Error closing file: %v", err) } + l.mu.Unlock() return } @@ -87,7 +96,6 @@ func (l *JSONFileLogger) readLogs(logWatcher *logger.LogWatcher, config logger.R latestFile.Seek(0, os.SEEK_END) } - l.mu.Lock() l.readers[logWatcher] = struct{}{} l.mu.Unlock() @@ -128,92 +136,142 @@ func tailFile(f io.ReadSeeker, logWatcher *logger.LogWatcher, tail int, since ti } } +func watchFile(name string) (filenotify.FileWatcher, error) { + fileWatcher, err := filenotify.New() + if err != nil { + return nil, err + } + + if err := fileWatcher.Add(name); err != nil { + logrus.WithField("logger", "json-file").Warnf("falling back to file poller due to error: %v", err) + fileWatcher.Close() + fileWatcher = filenotify.NewPollingWatcher() + + if err := fileWatcher.Add(name); err != nil { + fileWatcher.Close() + logrus.Debugf("error watching log file for modifications: %v", err) + return nil, err + } + } + return fileWatcher, nil +} + func followLogs(f *os.File, logWatcher *logger.LogWatcher, notifyRotate chan interface{}, since time.Time) { dec := json.NewDecoder(f) l := &jsonlog.JSONLog{} - fileWatcher, err := filenotify.New() + name := f.Name() + fileWatcher, err := watchFile(name) if err != nil { logWatcher.Err <- err + return } defer func() { f.Close() fileWatcher.Close() }() - name := f.Name() - if err := fileWatcher.Add(name); err != nil { - logrus.WithField("logger", "json-file").Warnf("falling back to file poller due to error: %v", err) - fileWatcher.Close() - fileWatcher = filenotify.NewPollingWatcher() + var retries int + handleRotate := func() error { + f.Close() + fileWatcher.Remove(name) + // retry when the file doesn't exist + for retries := 0; retries <= 5; retries++ { + f, err = os.Open(name) + if err == nil || !os.IsNotExist(err) { + break + } + } + if err != nil { + return err + } if err := fileWatcher.Add(name); err != nil { - logrus.Debugf("error watching log file for modifications: %v", err) - logWatcher.Err <- err - return + return err } + dec = json.NewDecoder(f) + return nil } - var retries int - for { - msg, err := decodeLogLine(dec, l) - if err != nil { - if err != io.EOF { - // try again because this shouldn't happen - if _, ok := err.(*json.SyntaxError); ok && retries <= maxJSONDecodeRetry { - dec = json.NewDecoder(f) - retries++ - continue + errRetry := errors.New("retry") + errDone := errors.New("done") + waitRead := func() error { + select { + case e := <-fileWatcher.Events(): + switch e.Op { + case fsnotify.Write: + dec = json.NewDecoder(f) + return nil + case fsnotify.Rename, fsnotify.Remove: + <-notifyRotate + if err := handleRotate(); err != nil { + return err } - - // io.ErrUnexpectedEOF is returned from json.Decoder when there is - // remaining data in the parser's buffer while an io.EOF occurs. - // If the json logger writes a partial json log entry to the disk - // while at the same time the decoder tries to decode it, the race condition happens. - if err == io.ErrUnexpectedEOF && retries <= maxJSONDecodeRetry { - reader := io.MultiReader(dec.Buffered(), f) - dec = json.NewDecoder(reader) - retries++ - continue + return nil + } + return errRetry + case err := <-fileWatcher.Errors(): + logrus.Debug("logger got error watching file: %v", err) + // Something happened, let's try and stay alive and create a new watcher + if retries <= 5 { + fileWatcher, err = watchFile(name) + if err != nil { + return err } - - return + retries++ + return errRetry } + return err + case <-logWatcher.WatchClose(): + fileWatcher.Remove(name) + return errDone + } + } - select { - case <-fileWatcher.Events(): - dec = json.NewDecoder(f) - continue - case <-fileWatcher.Errors(): - logWatcher.Err <- err - return - case <-logWatcher.WatchClose(): - fileWatcher.Remove(name) - return - case <-notifyRotate: - f.Close() - fileWatcher.Remove(name) - - // retry when the file doesn't exist - for retries := 0; retries <= 5; retries++ { - f, err = os.Open(name) - if err == nil || !os.IsNotExist(err) { - break - } + handleDecodeErr := func(err error) error { + if err == io.EOF { + for err := waitRead(); err != nil; { + if err == errRetry { + // retry the waitRead + continue } + return err + } + return nil + } + // try again because this shouldn't happen + if _, ok := err.(*json.SyntaxError); ok && retries <= maxJSONDecodeRetry { + dec = json.NewDecoder(f) + retries++ + return nil + } + // io.ErrUnexpectedEOF is returned from json.Decoder when there is + // remaining data in the parser's buffer while an io.EOF occurs. + // If the json logger writes a partial json log entry to the disk + // while at the same time the decoder tries to decode it, the race condition happens. + if err == io.ErrUnexpectedEOF && retries <= maxJSONDecodeRetry { + reader := io.MultiReader(dec.Buffered(), f) + dec = json.NewDecoder(reader) + retries++ + return nil + } + return err + } - if err = fileWatcher.Add(name); err != nil { - logWatcher.Err <- err - return - } - if err != nil { - logWatcher.Err <- err + // main loop + for { + msg, err := decodeLogLine(dec, l) + if err != nil { + if err := handleDecodeErr(err); err != nil { + if err == errDone { return } - - dec = json.NewDecoder(f) - continue + // we got an unrecoverable error, so return + logWatcher.Err <- err + return } + // ready to try again + continue } retries = 0 // reset retries since we've succeeded -- 2.7.3
shibajee/buildroot
package/docker-engine/0001-Fix-issues-with-tailing-rotated-jsonlog-file.patch
patch
mit
8,507
config BR2_PACKAGE_DOCKER_ENGINE bool "docker-engine" depends on BR2_PACKAGE_HOST_GO_ARCH_SUPPORTS depends on BR2_PACKAGE_HOST_GO_CGO_LINKING_SUPPORTS depends on BR2_TOOLCHAIN_HAS_THREADS help Docker is a platform to build, ship, and run applications as lightweight containers. https://github.com/docker/docker if BR2_PACKAGE_DOCKER_ENGINE config BR2_PACKAGE_DOCKER_ENGINE_DAEMON bool "docker daemon" depends on BR2_USE_WCHAR # docker-containerd select BR2_PACKAGE_DOCKER_CONTAINERD # runtime dependency select BR2_PACKAGE_SQLITE # runtime dependency default y help Build the Docker system daemon. If not selected, will build client only. config BR2_PACKAGE_DOCKER_ENGINE_EXPERIMENTAL bool "build experimental features" if BR2_PACKAGE_DOCKER_ENGINE_DAEMON config BR2_PACKAGE_DOCKER_ENGINE_DRIVER_BTRFS bool "btrfs filesystem driver" depends on BR2_USE_WCHAR # btrfs-progs depends on BR2_USE_MMU # btrfs-progs depends on BR2_TOOLCHAIN_HAS_THREADS # btrfs-progs select BR2_PACKAGE_BTRFS_PROGS help Build the btrfs filesystem driver for Docker. config BR2_PACKAGE_DOCKER_ENGINE_DRIVER_DEVICEMAPPER bool "devicemapper filesystem driver" depends on BR2_TOOLCHAIN_HAS_THREADS # lvm2 depends on BR2_USE_MMU # lvm2 depends on !BR2_STATIC_LIBS # lvm2 select BR2_PACKAGE_LVM2 select BR2_PACKAGE_LVM2_APP_LIBRARY help Build the devicemapper filesystem driver for Docker. config BR2_PACKAGE_DOCKER_ENGINE_DRIVER_VFS bool "vfs filesystem driver" depends on BR2_USE_WCHAR # gvfs depends on BR2_USE_MMU # gvfs depends on BR2_TOOLCHAIN_HAS_THREADS # gvfs select BR2_PACKAGE_GVFS help Build the vfs filesystem driver for Docker. endif endif comment "docker-engine needs a toolchain w/ threads" depends on BR2_PACKAGE_HOST_GO_ARCH_SUPPORTS depends on BR2_PACKAGE_HOST_GO_CGO_LINKING_SUPPORTS depends on !BR2_TOOLCHAIN_HAS_THREADS
shibajee/buildroot
package/docker-engine/Config.in
in
mit
1,881
# Locally calculated sha256 f8139acba98248eb1fdb0b6d94efee89b876f9a50d00e263dc144fd2b0c372d4 docker-engine-v1.12.0.tar.gz
shibajee/buildroot
package/docker-engine/docker-engine.hash
hash
mit
123
################################################################################ # # docker-engine # ################################################################################ DOCKER_ENGINE_VERSION = v1.12.0 DOCKER_ENGINE_SITE = $(call github,docker,docker,$(DOCKER_ENGINE_VERSION)) DOCKER_ENGINE_LICENSE = Apache-2.0 DOCKER_ENGINE_LICENSE_FILES = LICENSE DOCKER_ENGINE_DEPENDENCIES = host-go DOCKER_ENGINE_GOPATH = "$(@D)/vendor" DOCKER_ENGINE_MAKE_ENV = $(HOST_GO_TARGET_ENV) \ CGO_ENABLED=1 \ CGO_NO_EMULATION=1 \ GOBIN="$(@D)/bin" \ GOPATH="$(DOCKER_ENGINE_GOPATH)" DOCKER_ENGINE_GLDFLAGS = \ -X main.GitCommit=$(DOCKER_ENGINE_VERSION) \ -X main.Version=$(DOCKER_ENGINE_VERSION) ifeq ($(BR2_STATIC_LIBS),y) DOCKER_ENGINE_GLDFLAGS += -extldflags '-static' endif DOCKER_ENGINE_BUILD_TAGS = cgo exclude_graphdriver_zfs autogen DOCKER_ENGINE_BUILD_TARGETS = docker ifeq ($(BR2_PACKAGE_LIBSECCOMP),y) DOCKER_ENGINE_BUILD_TAGS += seccomp DOCKER_ENGINE_DEPENDENCIES += libseccomp endif ifeq ($(BR2_PACKAGE_DOCKER_ENGINE_DAEMON),y) DOCKER_ENGINE_BUILD_TAGS += daemon DOCKER_ENGINE_BUILD_TARGETS += dockerd endif ifeq ($(BR2_PACKAGE_DOCKER_ENGINE_EXPERIMENTAL),y) DOCKER_ENGINE_BUILD_TAGS += experimental endif ifeq ($(BR2_PACKAGE_DOCKER_ENGINE_DRIVER_BTRFS),y) DOCKER_ENGINE_DEPENDENCIES += btrfs-progs else DOCKER_ENGINE_BUILD_TAGS += exclude_graphdriver_btrfs endif ifeq ($(BR2_PACKAGE_DOCKER_ENGINE_DRIVER_DEVICEMAPPER),y) DOCKER_ENGINE_DEPENDENCIES += lvm2 else DOCKER_ENGINE_BUILD_TAGS += exclude_graphdriver_devicemapper endif ifeq ($(BR2_PACKAGE_DOCKER_ENGINE_DRIVER_VFS),y) DOCKER_ENGINE_DEPENDENCIES += gvfs else DOCKER_ENGINE_BUILD_TAGS += exclude_graphdriver_vfs endif define DOCKER_ENGINE_CONFIGURE_CMDS ln -fs $(@D) $(DOCKER_ENGINE_GOPATH)/src/github.com/docker/docker cd $(@D) && \ GITCOMMIT="unknown" BUILDTIME="$$(date)" VERSION="$(DOCKER_ENGINE_VERSION)" \ bash ./hack/make/.go-autogen endef ifeq ($(BR2_PACKAGE_DOCKER_ENGINE_DAEMON),y) define DOCKER_ENGINE_INSTALL_INIT_SYSTEMD $(INSTALL) -D -m 0644 $(@D)/contrib/init/systemd/docker.service \ $(TARGET_DIR)/usr/lib/systemd/system/docker.service $(INSTALL) -D -m 0644 $(@D)/contrib/init/systemd/docker.socket \ $(TARGET_DIR)/usr/lib/systemd/system/docker.socket mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/ ln -fs ../../../../usr/lib/systemd/system/docker.service \ $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/docker.service endef define DOCKER_ENGINE_USERS - - docker -1 * - - - Docker Application Container Framework endef endif define DOCKER_ENGINE_BUILD_CMDS $(foreach target,$(DOCKER_ENGINE_BUILD_TARGETS), \ cd $(@D); $(DOCKER_ENGINE_MAKE_ENV) \ $(HOST_DIR)/usr/bin/go build -v \ -o $(@D)/bin/$(target) \ -tags "$(DOCKER_ENGINE_BUILD_TAGS)" \ -ldflags "$(DOCKER_ENGINE_GLDFLAGS)" \ ./cmd/$(target) ) endef define DOCKER_ENGINE_INSTALL_TARGET_CMDS $(foreach target,$(DOCKER_ENGINE_BUILD_TARGETS), \ $(INSTALL) -D -m 0755 $(@D)/bin/$(target) $(TARGET_DIR)/usr/bin/$(target) ) endef $(eval $(generic-package))
shibajee/buildroot
package/docker-engine/docker-engine.mk
mk
mit
3,084
config BR2_PACKAGE_DOCKER bool "docker" depends on BR2_PACKAGE_XORG7 depends on BR2_USE_WCHAR # glib2 depends on BR2_TOOLCHAIN_HAS_THREADS # glib2 depends on BR2_USE_MMU # glib2 select BR2_PACKAGE_LIBGLIB2 select BR2_PACKAGE_XLIB_LIBX11 help a system tray dock for X http://icculus.org/openbox/2/docker comment "docker needs a toolchain w/ wchar, threads" depends on BR2_USE_MMU depends on BR2_PACKAGE_XORG7 depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS
shibajee/buildroot
package/docker/Config.in
in
mit
483
# Locally calculated sha256 47629578e89d96d1541c91d040aec4316f03ad6d01dc3eecb8f82a33445c1e4e docker-1.5.tar.gz
shibajee/buildroot
package/docker/docker.hash
hash
mit
111
################################################################################ # # docker # ################################################################################ DOCKER_VERSION = 1.5 DOCKER_SITE = http://icculus.org/openbox/2/docker DOCKER_DEPENDENCIES = host-pkgconf libglib2 xlib_libX11 DOCKER_LICENSE = GPLv2+ # The 'or later' is specified at the end of the README, so include that one too. DOCKER_LICENSE_FILES = COPYING README define DOCKER_BUILD_CMDS $(TARGET_CONFIGURE_OPTS) $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) \ XLIBPATH=$(STAGING_DIR)/usr/lib endef define DOCKER_INSTALL_TARGET_CMDS $(TARGET_CONFIGURE_OPTS) $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) \ XLIBPATH=$(STAGING_DIR)/usr/lib PREFIX=$(TARGET_DIR)/usr install endef $(eval $(generic-package))
shibajee/buildroot
package/docker/docker.mk
mk
mit
777
From f0da50118f7bd01ed7fa97e75b790a8232d8d4dc Mon Sep 17 00:00:00 2001 From: Rahul Bedarkar <rahul.bedarkar@imgtec.com> Date: Thu, 25 Aug 2016 17:23:38 +0530 Subject: [PATCH] add proper check for detecting header <execinfo.h> domoticz.cpp currently assumes that on GNU/Linux systems header <execinfo.h> is available. But that is not true. Since it provided by C library and uClibc can be built without backtrace support. And in such cases we get following build error. domoticz-3.4834/main/domoticz.cpp:48:22: fatal error: execinfo.h: No such file or directory #include <execinfo.h> ^ compilation terminated. Instead of depending on __gnu_linux__, add check for detecting presence of <execinfo.h> and guard code for dumpstack accordingly. This build failure is detected by Buildroot autobuilder. http://autobuild.buildroot.net/results/393/393f839e160b51ca12ac36058718ad2f0c1b50a6/ Signed-off-by: Rahul Bedarkar <rahul.bedarkar@imgtec.com> --- CMakeLists.txt | 7 +++++++ main/domoticz.cpp | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) Index: b/CMakeLists.txt =================================================================== --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -61,6 +61,13 @@ "Where to put the executables for Domoticz" ) +INCLUDE(CheckIncludeFiles) +CHECK_INCLUDE_FILES (execinfo.h HAVE_EXECINFO_H) + +IF(HAVE_EXECINFO_H) + ADD_DEFINITIONS(-DHAVE_EXECINFO_H) +ENDIF(HAVE_EXECINFO_H) + #set(CMAKE_EXE_LINKER_FLAGS "-static") # Macro for setting up precompiled headers. Usage: Index: b/main/domoticz.cpp =================================================================== --- a/main/domoticz.cpp +++ b/main/domoticz.cpp @@ -44,7 +44,7 @@ #include <string.h> #endif -#ifdef __gnu_linux__ +#ifdef HAVE_EXECINFO_H #include <execinfo.h> static void dumpstack(void) { // Notes :
shibajee/buildroot
package/domoticz/0001-add-proper-check-for-detecting-header-execinfo.h.patch
patch
mit
1,867
config BR2_PACKAGE_DOMOTICZ bool "domoticz" depends on BR2_USE_MMU # mosquitto depends on !BR2_STATIC_LIBS # mosquitto depends on BR2_TOOLCHAIN_HAS_THREADS depends on BR2_INSTALL_LIBSTDCPP depends on BR2_USE_WCHAR depends on BR2_PACKAGE_LUA_5_2 || BR2_PACKAGE_LUA_5_3 select BR2_PACKAGE_BOOST select BR2_PACKAGE_BOOST_DATE_TIME select BR2_PACKAGE_BOOST_SYSTEM select BR2_PACKAGE_BOOST_THREAD select BR2_PACKAGE_LIBCURL select BR2_PACKAGE_MOSQUITTO select BR2_PACKAGE_OPENSSL select BR2_PACKAGE_SQLITE select BR2_PACKAGE_ZLIB help Domoticz is a Home Automation System that lets you monitor and configure various devices like: Lights, Switches, various sensors/meters like Temperature, Rain, Wind, UV, Electra, Gas, Water and much more. Notifications/Alerts can be sent to any mobile device. http://domoticz.com comment "domoticz needs lua >= 5.2 and a toolchain w/ C++, threads, wchar, dynamic library" depends on BR2_USE_MMU depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS || \ !BR2_USE_WCHAR || BR2_STATIC_LIBS || \ !(BR2_PACKAGE_LUA_5_2 || BR2_PACKAGE_LUA_5_3)
shibajee/buildroot
package/domoticz/Config.in
in
mit
1,122
#!/bin/sh NAME=domoticz PIDFILE=/var/run/$NAME.pid DAEMON=/opt/domoticz/$NAME DAEMON_ARGS="-daemon -www 8080 -sslwww 443" start() { printf "Starting $NAME: " start-stop-daemon -S -q -m -b -p $PIDFILE --exec $DAEMON -- $DAEMON_ARGS [ $? = 0 ] && echo "OK" || echo "FAIL" } stop() { printf "Stopping $NAME: " start-stop-daemon -K -q -p $PIDFILE [ $? = 0 ] && echo "OK" || echo "FAIL" } restart() { stop start } case "$1" in start) start ;; stop) stop ;; restart|reload) restart ;; *) echo "Usage: $0 {start|stop|restart}" exit 1 esac exit $?
shibajee/buildroot
package/domoticz/S99domoticz
none
mit
568
# Locally computed: sha256 02b4cdde8e376258aeae3d5621edf8bb6b3563c34282e50194db343fcec9c0f5 domoticz-3.4834.tar.gz
shibajee/buildroot
package/domoticz/domoticz.hash
hash
mit
115
################################################################################ # # domoticz # ################################################################################ DOMOTICZ_VERSION = 3.4834 DOMOTICZ_SITE = $(call github,domoticz,domoticz,$(DOMOTICZ_VERSION)) DOMOTICZ_LICENSE = GPLv3 DOMOTICZ_LICENSE_FILES = License.txt DOMOTICZ_DEPENDENCIES = \ boost \ host-pkgconf \ libcurl \ lua \ mosquitto \ openssl \ sqlite \ zlib # Due to the dependency on mosquitto, domoticz depends on # !BR2_STATIC_LIBS so set USE_STATIC_BOOST to OFF DOMOTICZ_CONF_OPTS += -DUSE_STATIC_BOOST=OFF # Do not use any built-in libraries which are enabled by default for # lua, sqlite and mqtt DOMOTICZ_CONF_OPTS += \ -DUSE_BUILTIN_LUA=OFF \ -DUSE_BUILTIN_SQLITE=OFF \ -DUSE_BUILTIN_MQTT=OFF ifeq ($(BR2_PACKAGE_LIBUSB),y) DOMOTICZ_DEPENDENCIES += libusb endif ifeq ($(BR2_PACKAGE_OPENZWAVE),y) DOMOTICZ_DEPENDENCIES += openzwave # Due to the dependency on mosquitto, domoticz depends on # !BR2_STATIC_LIBS so set USE_STATIC_OPENZWAVE to OFF otherwise # domoticz will not find the openzwave library as it searches by # default a static library. DOMOTICZ_CONF_OPTS += -DUSE_STATIC_OPENZWAVE=OFF endif # Install domoticz in a dedicated directory (/opt/domoticz) as # domoticz expects by default that all its subdirectories (www, # Config, scripts, ...) are in the binary directory. DOMOTICZ_TARGET_DIR = /opt/domoticz DOMOTICZ_CONF_OPTS += -DCMAKE_INSTALL_PREFIX=$(DOMOTICZ_TARGET_DIR) # Delete License.txt and updatedomo files installed by domoticz in target # directory # Do not delete History.txt as it is used in source code define DOMOTICZ_REMOVE_UNNEEDED_FILES $(RM) $(TARGET_DIR)/$(DOMOTICZ_TARGET_DIR)/License.txt $(RM) $(TARGET_DIR)/$(DOMOTICZ_TARGET_DIR)/updatedomo endef DOMOTICZ_POST_INSTALL_TARGET_HOOKS += DOMOTICZ_REMOVE_UNNEEDED_FILES # Use dedicated init scripts for systemV and systemd instead of using # domoticz.sh as it is not compatible with buildroot init system define DOMOTICZ_INSTALL_INIT_SYSV $(INSTALL) -D -m 0755 package/domoticz/S99domoticz \ $(TARGET_DIR)/etc/init.d/S99domoticz endef define DOMOTICZ_INSTALL_INIT_SYSTEMD $(INSTALL) -D -m 644 package/domoticz/domoticz.service \ $(TARGET_DIR)/usr/lib/systemd/system/domoticz.service mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants ln -sf ../../../../usr/lib/systemd/system/domoticz.service \ $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/domoticz.service endef $(eval $(cmake-package))
shibajee/buildroot
package/domoticz/domoticz.mk
mk
mit
2,515
[Unit] Description=Domoticz Home Automation System After=network.target [Service] ExecStart=/opt/domoticz/domoticz -daemon -www 8080 -sslwww 443 Restart=always [Install] WantedBy=multi-user.target
shibajee/buildroot
package/domoticz/domoticz.service
service
mit
199
config BR2_PACKAGE_DOOM_WAD bool "shareware Doom WAD file" depends on BR2_PACKAGE_CHOCOLATE_DOOM || BR2_PACKAGE_PRBOOM help This will install the shareware wad data file for the doom game. The wad file will be placed in the /usr/share/games/doom directory.
shibajee/buildroot
package/doom-wad/Config.in
in
mit
267
# Locally computed sha256 cacf0142b31ca1af00796b4a0339e07992ac5f21bc3f81e7532fe1b5e1b486e6 doom19s.zip
shibajee/buildroot
package/doom-wad/doom-wad.hash
hash
mit
103
################################################################################ # # doom-wad # ################################################################################ DOOM_WAD_VERSION = 1.9 DOOM_WAD_SOURCE = doom$(subst .,,$(DOOM_WAD_VERSION))s.zip # Official server currently unavailable # DOOM_WAD_SITE = ftp://ftp.idsoftware.com/idstuff/doom DOOM_WAD_SITE = http://www.jbserver.com/downloads/games/doom/misc/shareware define DOOM_WAD_EXTRACT_CMDS $(UNZIP) -p $(DL_DIR)/$($(PKG)_SOURCE) 'DOOMS_19.[12]' > \ $(@D)/doom-$(DOOM_WAD_VERSION).zip $(UNZIP) -d $(@D) $(@D)/doom-$(DOOM_WAD_VERSION).zip DOOM1.WAD endef define DOOM_WAD_INSTALL_TARGET_CMDS $(INSTALL) -m 0644 -D $(@D)/DOOM1.WAD \ $(TARGET_DIR)/usr/share/games/doom/doom1.wad endef $(eval $(generic-package))
shibajee/buildroot
package/doom-wad/doom-wad.mk
mk
mit
788
config BR2_PACKAGE_DOS2UNIX select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT_IF_LOCALE bool "dos2unix" depends on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS help dos2unix converts text file line endings between CRLF and LF http://waterlan.home.xs4all.nl/dos2unix.html
shibajee/buildroot
package/dos2unix/Config.in
in
mit
267
config BR2_PACKAGE_HOST_DOS2UNIX bool "host dos2unix" help dos2unix converts text file line endings between CRLF and LF http://waterlan.home.xs4all.nl/dos2unix.html
shibajee/buildroot
package/dos2unix/Config.in.host
host
mit
174
# Locally calculated after checking pgp signature sha256 8ccda7bbc5a2f903dafd95900abb5bf5e77a769b572ef25150fde4056c5f30c5 dos2unix-7.3.4.tar.gz
shibajee/buildroot
package/dos2unix/dos2unix.hash
hash
mit
144
################################################################################ # # dos2unix # ################################################################################ DOS2UNIX_VERSION = 7.3.4 DOS2UNIX_SITE = http://waterlan.home.xs4all.nl/dos2unix DOS2UNIX_LICENSE = BSD-2c DOS2UNIX_LICENSE_FILES = COPYING.txt DOS2UNIX_DEPENDENCIES = $(if $(BR2_PACKAGE_BUSYBOX),busybox) ifeq ($(BR2_ENABLE_LOCALE),y) DOS2UNIX_DEPENDENCIES += host-gettext else DOS2UNIX_MAKE_OPTS += ENABLE_NLS= endif ifeq ($(BR2_NEEDS_GETTEXT_IF_LOCALE),y) DOS2UNIX_DEPENDENCIES += gettext DOS2UNIX_MAKE_OPTS += LIBS_EXTRA=-lintl endif ifeq ($(BR2_USE_WCHAR),) DOS2UNIX_MAKE_OPTS += UCS= endif define DOS2UNIX_BUILD_CMDS $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) $(DOS2UNIX_MAKE_OPTS) endef define DOS2UNIX_INSTALL_TARGET_CMDS $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) \ $(DOS2UNIX_MAKE_OPTS) install endef define HOST_DOS2UNIX_BUILD_CMDS $(HOST_CONFIGURE_OPTS) $(MAKE) -C $(@D) ENABLE_NLS= endef define HOST_DOS2UNIX_INSTALL_CMDS $(HOST_CONFIGURE_OPTS) $(MAKE) -C $(@D) DESTDIR=$(HOST_DIR) ENABLE_NLS= \ install endef $(eval $(generic-package)) $(eval $(host-generic-package))
shibajee/buildroot
package/dos2unix/dos2unix.mk
mk
mit
1,195
From 1e76e5778a1885452939a79d9145b80634a5b023 Mon Sep 17 00:00:00 2001 From: Andreas Bombe <aeb@debian.org> Date: Wed, 11 May 2016 03:44:58 +0200 Subject: [PATCH] mkfs: Default to 64/32 heads/sectors for targets smaller than 512 MB This may put defaults in certain use cases a little bit more in line with the old defaults in versions up to 3.0.28. It has mostly aesthetic value in most cases. Signed-off-by: Andreas Bombe <aeb@debian.org> Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> --- Patch status: upstream src/mkfs.fat.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/mkfs.fat.c b/src/mkfs.fat.c index 8a320fd..bad492b 100644 --- a/src/mkfs.fat.c +++ b/src/mkfs.fat.c @@ -519,6 +519,16 @@ static void establish_params(struct device_info *info) unsigned int cluster_size = 4; /* starting point for FAT12 and FAT16 */ int def_root_dir_entries = 512; + if (info->size < 512 * 1024 * 1024) { + /* + * These values are more or less meaningless, but we can at least + * use less extreme values for smaller filesystems where the large + * dummy values signifying LBA only access are not needed. + */ + sec_per_track = 32; + heads = 64; + } + if (info->type != TYPE_FIXED) { /* enter default parameters for floppy disks if the size matches */ switch (info->size / 1024) { -- 2.7.3
shibajee/buildroot
package/dosfstools/0001-mkfs-Default-to-64-32-heads-sectors-for-targets-smalle.patch
patch
mit
1,352
config BR2_PACKAGE_DOSFSTOOLS bool "dosfstools" depends on BR2_USE_WCHAR select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE help Tools for creating and checking DOS FAT filesystems. https://github.com/dosfstools/dosfstools if BR2_PACKAGE_DOSFSTOOLS config BR2_PACKAGE_DOSFSTOOLS_FATLABEL bool "fatlabel" help Get or set the DOS FAT filesystem label. config BR2_PACKAGE_DOSFSTOOLS_FSCK_FAT bool "fsck.fat" help Check a DOS FAT filesystem. config BR2_PACKAGE_DOSFSTOOLS_MKFS_FAT bool "mkfs.fat" help Creates a DOS FAT filesystem on a device. endif comment "dosfstools needs a toolchain w/ wchar" depends on !BR2_USE_WCHAR
shibajee/buildroot
package/dosfstools/Config.in
in
mit
652
config BR2_PACKAGE_HOST_DOSFSTOOLS bool "host dosfstools" help Tools for creating and checking DOS FAT filesystems. http://www.daniel-baumann.ch/software/dosfstools/
shibajee/buildroot
package/dosfstools/Config.in.host
host
mit
175
# Locally calculated after checking pgp signature sha256 9037738953559d1efe04fc5408b6846216cc0138f7f9d32de80b6ec3c35e7daf dosfstools-4.0.tar.xz
shibajee/buildroot
package/dosfstools/dosfstools.hash
hash
mit
144
################################################################################ # # dosfstools # ################################################################################ DOSFSTOOLS_VERSION = 4.0 DOSFSTOOLS_SOURCE = dosfstools-$(DOSFSTOOLS_VERSION).tar.xz DOSFSTOOLS_SITE = https://github.com/dosfstools/dosfstools/releases/download/v$(DOSFSTOOLS_VERSION) DOSFSTOOLS_LICENSE = GPLv3+ DOSFSTOOLS_LICENSE_FILES = COPYING DOSFSTOOLS_CONF_OPTS = --enable-compat-symlinks --exec-prefix=/ HOST_DOSFSTOOLS_CONF_OPTS = --enable-compat-symlinks ifeq ($(BR2_PACKAGE_HAS_UDEV),y) DOSFSTOOLS_CONF_OPTS += --with-udev DOSFSTOOLS_DEPENDENCIES += udev else DOSFSTOOLS_CONF_OPTS += --without-udev endif ifneq ($(BR2_ENABLE_LOCALE),y) DOSFSTOOLS_CONF_OPTS += LIBS="-liconv" DOSFSTOOLS_DEPENDENCIES += libiconv endif ifeq ($(BR2_PACKAGE_DOSFSTOOLS_FATLABEL),) define DOSFSTOOLS_REMOVE_FATLABEL rm -f $(addprefix $(TARGET_DIR)/sbin/,dosfslabel fatlabel) endef DOSFSTOOLS_POST_INSTALL_TARGET_HOOKS += DOSFSTOOLS_REMOVE_FATLABEL endif ifeq ($(BR2_PACKAGE_DOSFSTOOLS_FSCK_FAT),) define DOSFSTOOLS_REMOVE_FSCK_FAT rm -f $(addprefix $(TARGET_DIR)/sbin/,fsck.fat dosfsck fsck.msdos fsck.vfat) endef DOSFSTOOLS_POST_INSTALL_TARGET_HOOKS += DOSFSTOOLS_REMOVE_FSCK_FAT endif ifeq ($(BR2_PACKAGE_DOSFSTOOLS_MKFS_FAT),) define DOSFSTOOLS_REMOVE_MKFS_FAT rm -f $(addprefix $(TARGET_DIR)/sbin/,mkfs.fat mkdosfs mkfs.msdos mkfs.vfat) endef DOSFSTOOLS_POST_INSTALL_TARGET_HOOKS += DOSFSTOOLS_REMOVE_MKFS_FAT endif $(eval $(autotools-package)) $(eval $(host-autotools-package))
shibajee/buildroot
package/dosfstools/dosfstools.mk
mk
mit
1,561
config BR2_PACKAGE_DOVECOT_PIGEONHOLE bool "dovecot-pigeonhole" help Pigeonhole is the name of the project that adds support for the Sieve language (RFC 5228) and the ManageSieve protocol (RFC 5804) to the Dovecot Secure IMAP Server. http://pigeonhole.dovecot.org
shibajee/buildroot
package/dovecot-pigeonhole/Config.in
in
mit
279
# Locally computed sha256 c99ace6ead310c6c3b639922da618f90d846307da4fe252d994e5e51bf8a3de3 dovecot-2.2-pigeonhole-0.4.15.tar.gz
shibajee/buildroot
package/dovecot-pigeonhole/dovecot-pigeonhole.hash
hash
mit
128
################################################################################ # # dovecot-pigeonhole # ################################################################################ DOVECOT_PIGEONHOLE_VERSION = 0.4.15 DOVECOT_PIGEONHOLE_SOURCE = dovecot-2.2-pigeonhole-$(DOVECOT_PIGEONHOLE_VERSION).tar.gz DOVECOT_PIGEONHOLE_SITE = http://pigeonhole.dovecot.org/releases/2.2 DOVECOT_PIGEONHOLE_LICENSE = LGPLv2.1 DOVECOT_PIGEONHOLE_LICENSE_FILES = COPYING DOVECOT_PIGEONHOLE_DEPENDENCIES = dovecot DOVECOT_PIGEONHOLE_CONF_OPTS = --with-dovecot=$(STAGING_DIR)/usr/lib $(eval $(autotools-package))
shibajee/buildroot
package/dovecot-pigeonhole/dovecot-pigeonhole.mk
mk
mit
604
config BR2_PACKAGE_DOVECOT bool "dovecot" depends on !BR2_STATIC_LIBS depends on BR2_USE_MMU # fork() help Dovecot is an open source IMAP and POP3 email server for Linux/UNIX- like systems, written with security primarily in mind. Dovecot is an excellent choice for both small and large installations. It's fast, simple to set up, requires no special administration and it uses very little memory. http://www.dovecot.org if BR2_PACKAGE_DOVECOT config BR2_PACKAGE_DOVECOT_MYSQL bool "mysql support" select BR2_PACKAGE_MYSQL depends on BR2_INSTALL_LIBSTDCPP # mysql depends on BR2_TOOLCHAIN_HAS_THREADS # mysql help Enable MySQL support. comment "mysql support needs a toolchain w/ C++, threads" depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS config BR2_PACKAGE_DOVECOT_OPENSSL bool "openssl support" select BR2_PACKAGE_OPENSSL select BR2_PACKAGE_ZLIB help Enable OpenSSL support. config BR2_PACKAGE_DOVECOT_SQLITE bool "sqlite support" select BR2_PACKAGE_SQLITE help Enable SQLite support. source package/dovecot-pigeonhole/Config.in endif # BR2_PACKAGE_DOVECOT comment "dovecot needs a toolchain w/ dynamic library" depends on BR2_USE_MMU depends on BR2_STATIC_LIBS
shibajee/buildroot
package/dovecot/Config.in
in
mit
1,238
# Locally computed sha256 d8d9f32c846397f7c22749a84c5cf6f59c55ff7ded3dc9f07749a255182f9667 dovecot-2.2.25.tar.gz
shibajee/buildroot
package/dovecot/dovecot.hash
hash
mit
113
################################################################################ # # dovecot # ################################################################################ DOVECOT_VERSION_MAJOR = 2.2 DOVECOT_VERSION = $(DOVECOT_VERSION_MAJOR).25 DOVECOT_SITE = http://www.dovecot.org/releases/$(DOVECOT_VERSION_MAJOR) DOVECOT_INSTALL_STAGING = YES DOVECOT_LICENSE = LGPLv2.1 DOVECOT_LICENSE_FILES = COPYING COPYING.LGPL COPYING.MIT DOVECOT_DEPENDENCIES = host-pkgconf $(if $(BR2_PACKAGE_LIBICONV),libiconv) DOVECOT_CONF_ENV = \ RPCGEN=__disable_RPCGEN_rquota \ i_cv_epoll_works=yes \ i_cv_inotify_works=yes \ i_cv_posix_fallocate_works=no \ i_cv_signed_size_t=no \ i_cv_gmtime_max_time_t=32 \ i_cv_signed_time_t=yes \ i_cv_mmap_plays_with_write=yes \ i_cv_fd_passing=yes \ i_cv_c99_vsnprintf=yes \ lib_cv_va_copy=yes \ lib_cv___va_copy=yes \ lib_cv_va_val_copy=yes DOVECOT_CONF_OPTS = --without-docs ifeq ($(BR2_PACKAGE_DOVECOT_MYSQL)$(BR2_PACKAGE_DOVECOT_SQLITE),) DOVECOT_CONF_OPTS += --without-sql endif ifeq ($(BR2_PACKAGE_BZIP2),y) DOVECOT_CONF_OPTS += --with-bzlib DOVECOT_DEPENDENCIES += bzip2 else DOVECOT_CONF_OPTS += --without-bzlib endif ifeq ($(BR2_PACKAGE_ICU),y) DOVECOT_CONF_OPTS += --with-icu DOVECOT_DEPENDENCIES += icu else DOVECOT_CONF_OPTS += --without-icu endif ifeq ($(BR2_PACKAGE_LIBCAP),y) DOVECOT_CONF_OPTS += --with-libcap DOVECOT_DEPENDENCIES += libcap else DOVECOT_CONF_OPTS += --without-libcap endif ifeq ($(BR2_PACKAGE_DOVECOT_MYSQL),y) DOVECOT_CONF_ENV += MYSQL_CONFIG="$(STAGING_DIR)/usr/bin/mysql_config" DOVECOT_CONF_OPTS += --with-mysql DOVECOT_DEPENDENCIES += mysql else DOVECOT_CONF_OPTS += --without-mysql endif ifeq ($(BR2_PACKAGE_DOVECOT_OPENSSL),y) DOVECOT_CONF_OPTS += --with-ssl=openssl DOVECOT_DEPENDENCIES += openssl else DOVECOT_CONF_OPTS += --with-ssl=no endif ifeq ($(BR2_PACKAGE_DOVECOT_SQLITE),y) DOVECOT_CONF_OPTS += --with-sqlite DOVECOT_DEPENDENCIES += sqlite else DOVECOT_CONF_OPTS += --without-sqlite endif ifeq ($(BR2_PACKAGE_LZ4),y) DOVECOT_CONF_OPTS += --with-lz4 DOVECOT_DEPENDENCIES += lz4 else DOVECOT_CONF_OPTS += --without-lz4 endif ifeq ($(BR2_PACKAGE_XZ),y) DOVECOT_CONF_OPTS += --with-lzma DOVECOT_DEPENDENCIES += xz else DOVECOT_CONF_OPTS += --without-lzma endif ifeq ($(BR2_PACKAGE_ZLIB),y) DOVECOT_CONF_OPTS += --with-zlib DOVECOT_DEPENDENCIES += zlib else DOVECOT_CONF_OPTS += --without-zlib endif # fix paths to avoid using /usr/lib/dovecot define DOVECOT_POST_CONFIGURE for i in $$(find $(@D) -name "Makefile"); do \ $(SED) 's%^pkglibdir =.*%pkglibdir = \$$(libdir)%' $$i; \ $(SED) 's%^pkglibexecdir =.*%pkglibexecdir = \$$(libexecdir)%' $$i; \ done endef DOVECOT_POST_CONFIGURE_HOOKS += DOVECOT_POST_CONFIGURE # dovecot installs dovecot-config in usr/lib/, therefore # DOVECOT_CONFIG_SCRIPTS can not be used to rewrite paths define DOVECOT_FIX_STAGING_DOVECOT_CONFIG $(SED) 's,^LIBDOVECOT_INCLUDE=.*$$,LIBDOVECOT_INCLUDE=\"-I$(STAGING_DIR)/usr/include/dovecot\",' $(STAGING_DIR)/usr/lib/dovecot-config $(SED) 's,^LIBDOVECOT=.*$$,LIBDOVECOT=\"-L$(STAGING_DIR)/usr/lib -ldovecot\",' $(STAGING_DIR)/usr/lib/dovecot-config endef DOVECOT_POST_INSTALL_STAGING_HOOKS += DOVECOT_FIX_STAGING_DOVECOT_CONFIG $(eval $(autotools-package))
shibajee/buildroot
package/dovecot/dovecot.mk
mk
mit
3,243
# Computed locally sha256 d4ab6e28d4d45d8956cad17470aade3fbe2356e8f64b92167e738c1887feccec doxygen-1.8.9.1.src.tar.gz
shibajee/buildroot
package/doxygen/doxygen.hash
hash
mit
119
################################################################################ # # doxygen # ################################################################################ DOXYGEN_VERSION = 1.8.9.1 DOXYGEN_SOURCE = doxygen-$(DOXYGEN_VERSION).src.tar.gz DOXYGEN_SITE = http://ftp.stack.nl/pub/users/dimitri DOXYGEN_LICENSE = GPLv2 DOXYGEN_LICENSE_FILES = LICENSE HOST_DOXYGEN_DEPENDENCIES = host-flex host-bison define HOST_DOXYGEN_CONFIGURE_CMDS (cd $(@D); $(HOST_MAKE_ENV) ./configure --shared --prefix=$(HOST_DIR)/usr) endef define HOST_DOXYGEN_BUILD_CMDS $(HOST_MAKE_ENV) $(MAKE) -C $(@D) endef define HOST_DOXYGEN_INSTALL_CMDS $(HOST_MAKE_ENV) $(MAKE) -C $(@D) install endef # Doxygen's configure is a handwritten script, not an autotools-generated one. # It doesn't accept host-autotools-package default arguments, so we have to # call host-generic-package here. $(eval $(host-generic-package))
shibajee/buildroot
package/doxygen/doxygen.mk
mk
mit
912
config BR2_PACKAGE_DRBD_UTILS bool "drbd-utils" depends on BR2_USE_MMU # needs fork() help DRBD utilities to manage the DRBD kernel module. http://oss.linbit.com/drbd/
shibajee/buildroot
package/drbd-utils/Config.in
in
mit
178
# Locally calculated sha256 38929279d1bf549fd1ade4ce6773a6fe209db51bbb0efe7bf6d2b7871ba0afbc drbd-utils-8.9.4.tar.gz
shibajee/buildroot
package/drbd-utils/drbd-utils.hash
hash
mit
117
################################################################################ # # drbd-utils # ################################################################################ DRBD_UTILS_VERSION = 8.9.4 DRBD_UTILS_SITE = http://oss.linbit.com/drbd DRBD_UTILS_LICENSE = GPLv2+ DRBD_UTILS_LICENSE_FILES = COPYING DRBD_UTILS_DEPENDENCIES = host-flex DRBD_UTILS_CONF_OPTS = --with-distro=generic --without-manual ifeq ($(BR2_INIT_SYSTEMD),y) DRBD_UTILS_CONF_OPTS += --with-initscripttype=systemd DRDB_UTILS_DEPENDENCIES += systemd else DRBD_UTILS_CONF_OPTS += --with-initscripttype=sysv endif ifeq ($(BR2_PACKAGE_HAS_UDEV),y) DRBD_UTILS_CONF_OPTS += --with-udev=yes DRDB_UTILS_DEPENDENCIES += udev else DRBD_UTILS_CONF_OPTS += --with-udev=no endif $(eval $(autotools-package))
shibajee/buildroot
package/drbd-utils/drbd-utils.mk
mk
mit
781
config BR2_PACKAGE_DROPBEAR bool "dropbear" select BR2_PACKAGE_ZLIB if !BR2_PACKAGE_DROPBEAR_SMALL help A small SSH 2 server designed for small memory environments. Note that dropbear requires a per-device unique host key. The key will be generated when dropbear starts, but it is not persistent over reboot (if you have a read-only rootfs) or upgrade (if you have a read-write rootfs). To make the key persistent, replace /etc/dropbear with a symlink to a directory on a persistent, writeable filesystem. Alternatively, mount a persistent unionfs over your root filesystem. http://matt.ucc.asn.au/dropbear/dropbear.html if BR2_PACKAGE_DROPBEAR config BR2_PACKAGE_DROPBEAR_CLIENT bool "client programs" default y help Provides the programs: dbclient, ssh Note that the following programs are also used server-side and are therefore always build regardless this setting: dropbear, dropbearkey, dropbearconvert, scp config BR2_PACKAGE_DROPBEAR_DISABLE_REVERSEDNS bool "disable reverse DNS lookups" help Disable reverse DNS lookups on connection. This can be handy on systems without working DNS, as connections otherwise stall until DNS times out. config BR2_PACKAGE_DROPBEAR_SMALL bool "optimize for size" default y help Compile dropbear for the smallest possible binary size. Tradeoffs are slower hashes and ciphers, and disabling of the blowfish cipher and zlib. config BR2_PACKAGE_DROPBEAR_WTMP bool "log dropbear access to wtmp" help Enable logging of dropbear access to wtmp. Notice that Buildroot does not generate wtmp by default. config BR2_PACKAGE_DROPBEAR_LASTLOG bool "log dropbear access to lastlog" help Enable logging of dropbear access to lastlog. Notice that Buildroot does not generate lastlog by default. endif
shibajee/buildroot
package/dropbear/Config.in
in
mit
1,826
#!/bin/sh # # Starts dropbear sshd. # # Allow a few customizations from a config file test -r /etc/default/dropbear && . /etc/default/dropbear start() { DROPBEAR_ARGS="$DROPBEAR_ARGS -R" # If /etc/dropbear is a symlink to /var/run/dropbear, and # - the filesystem is RO (i.e. we can not rm the symlink), # create the directory pointed to by the symlink. # - the filesystem is RW (i.e. we can rm the symlink), # replace the symlink with an actual directory if [ -L /etc/dropbear \ -a "$(readlink /etc/dropbear)" = "/var/run/dropbear" ] then if rm -f /etc/dropbear >/dev/null 2>&1; then mkdir -p /etc/dropbear else echo "No persistent location to store SSH host keys. New keys will be" echo "generated at each boot. Are you sure this is what you want to do?" mkdir -p "$(readlink /etc/dropbear)" fi fi printf "Starting dropbear sshd: " umask 077 start-stop-daemon -S -q -p /var/run/dropbear.pid \ --exec /usr/sbin/dropbear -- $DROPBEAR_ARGS [ $? = 0 ] && echo "OK" || echo "FAIL" } stop() { printf "Stopping dropbear sshd: " start-stop-daemon -K -q -p /var/run/dropbear.pid [ $? = 0 ] && echo "OK" || echo "FAIL" } restart() { stop start } case "$1" in start) start ;; stop) stop ;; restart|reload) restart ;; *) echo "Usage: $0 {start|stop|restart}" exit 1 esac exit $?
shibajee/buildroot
package/dropbear/S50dropbear
none
mit
1,354
# From https://matt.ucc.asn.au/dropbear/releases/SHA256SUM.asc sha256 2720ea54ed009af812701bcc290a2a601d5c107d12993e5d92c0f5f81f718891 dropbear-2016.74.tar.bz2
shibajee/buildroot
package/dropbear/dropbear.hash
hash
mit
160
################################################################################ # # dropbear # ################################################################################ DROPBEAR_VERSION = 2016.74 DROPBEAR_SITE = http://matt.ucc.asn.au/dropbear/releases DROPBEAR_SOURCE = dropbear-$(DROPBEAR_VERSION).tar.bz2 DROPBEAR_LICENSE = MIT, BSD-2c-like, BSD-2c DROPBEAR_LICENSE_FILES = LICENSE DROPBEAR_TARGET_BINS = dropbearkey dropbearconvert scp DROPBEAR_PROGRAMS = dropbear $(DROPBEAR_TARGET_BINS) ifeq ($(BR2_PACKAGE_DROPBEAR_CLIENT),y) # Build dbclient, and create a convenience symlink named ssh DROPBEAR_PROGRAMS += dbclient DROPBEAR_TARGET_BINS += dbclient ssh endif DROPBEAR_MAKE = \ $(MAKE) MULTI=1 SCPPROGRESS=1 \ PROGRAMS="$(DROPBEAR_PROGRAMS)" ifeq ($(BR2_STATIC_LIBS),y) DROPBEAR_MAKE += STATIC=1 endif define DROPBEAR_FIX_XAUTH $(SED) 's,^#define XAUTH_COMMAND.*/xauth,#define XAUTH_COMMAND "/usr/bin/xauth,g' $(@D)/options.h endef DROPBEAR_POST_EXTRACT_HOOKS += DROPBEAR_FIX_XAUTH define DROPBEAR_ENABLE_REVERSE_DNS $(SED) 's:.*\(#define DO_HOST_LOOKUP\).*:\1:' $(@D)/options.h endef define DROPBEAR_BUILD_SMALL $(SED) 's:.*\(#define NO_FAST_EXPTMOD\).*:\1:' $(@D)/options.h endef define DROPBEAR_BUILD_FEATURED $(SED) 's:^#define DROPBEAR_SMALL_CODE::' $(@D)/options.h $(SED) 's:.*\(#define DROPBEAR_BLOWFISH\).*:\1:' $(@D)/options.h $(SED) 's:.*\(#define DROPBEAR_TWOFISH128\).*:\1:' $(@D)/options.h $(SED) 's:.*\(#define DROPBEAR_TWOFISH256\).*:\1:' $(@D)/options.h endef define DROPBEAR_DISABLE_STANDALONE $(SED) 's:\(#define NON_INETD_MODE\):/*\1 */:' $(@D)/options.h endef define DROPBEAR_INSTALL_INIT_SYSTEMD $(INSTALL) -D -m 644 package/dropbear/dropbear.service \ $(TARGET_DIR)/usr/lib/systemd/system/dropbear.service mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants ln -fs ../../../../usr/lib/systemd/system/dropbear.service \ $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/dropbear.service endef ifeq ($(BR2_USE_MMU),y) define DROPBEAR_INSTALL_INIT_SYSV $(INSTALL) -D -m 755 package/dropbear/S50dropbear \ $(TARGET_DIR)/etc/init.d/S50dropbear endef else DROPBEAR_POST_EXTRACT_HOOKS += DROPBEAR_DISABLE_STANDALONE endif ifeq ($(BR2_PACKAGE_DROPBEAR_DISABLE_REVERSEDNS),) DROPBEAR_POST_EXTRACT_HOOKS += DROPBEAR_ENABLE_REVERSE_DNS endif ifeq ($(BR2_PACKAGE_DROPBEAR_SMALL),y) DROPBEAR_POST_EXTRACT_HOOKS += DROPBEAR_BUILD_SMALL DROPBEAR_CONF_OPTS += --disable-zlib else DROPBEAR_POST_EXTRACT_HOOKS += DROPBEAR_BUILD_FEATURED DROPBEAR_DEPENDENCIES += zlib endif ifneq ($(BR2_PACKAGE_DROPBEAR_WTMP),y) DROPBEAR_CONF_OPTS += --disable-wtmp endif ifneq ($(BR2_PACKAGE_DROPBEAR_LASTLOG),y) DROPBEAR_CONF_OPTS += --disable-lastlog endif define DROPBEAR_INSTALL_TARGET_CMDS $(INSTALL) -m 755 $(@D)/dropbearmulti $(TARGET_DIR)/usr/sbin/dropbear for f in $(DROPBEAR_TARGET_BINS); do \ ln -snf ../sbin/dropbear $(TARGET_DIR)/usr/bin/$$f ; \ done ln -snf /var/run/dropbear $(TARGET_DIR)/etc/dropbear endef $(eval $(autotools-package))
shibajee/buildroot
package/dropbear/dropbear.mk
mk
mit
3,020
[Unit] Description=Dropbear SSH daemon After=syslog.target network.target auditd.service [Service] # If /etc/dropbear is a symlink to /var/run/dropbear, and # - the filesystem is RO (i.e. we can not rm the symlink), # create the directory pointed to by the symlink. # - the filesystem is RW (i.e. we can rm the symlink), # replace the symlink with an actual directory ExecStartPre=/bin/sh -c '\ if [ -L /etc/dropbear \ -a "$(readlink /etc/dropbear)" = "/var/run/dropbear" ]; then \ if rm -f /etc/dropbear >/dev/null 2>&1; then \ mkdir -p /etc/dropbear; \ else \ echo "No persistent location to store SSH host keys. New keys will be"; \ echo "generated at each boot. Are you sure this is what you want to do?"; \ mkdir -p "$(readlink /etc/dropbear)"; \ fi; \ fi' EnvironmentFile=-/etc/default/dropbear ExecStart=/usr/sbin/dropbear -F -R $DROPBEAR_ARGS ExecReload=/bin/kill -HUP $MAINPID [Install] WantedBy=multi-user.target
shibajee/buildroot
package/dropbear/dropbear.service
service
mit
986
From 03bab84ca3f102274837e83ee6da4c997a9da018 Mon Sep 17 00:00:00 2001 From: Tzu-Jung Lee <tjlee@ambarella.com> Date: Fri, 12 Jul 2013 20:00:57 +0800 Subject: [PATCH] build: modify hardcoded gcc to support buildroot Signed-off-by: Tzu-Jung Lee <tjlee@ambarella.com> diff --git a/src/Makefile b/src/Makefile index 026b6ba..b87ae9f 100644 --- a/src/Makefile +++ b/src/Makefile @@ -5,10 +5,10 @@ OBJFILES := main.o lookup.o\ lookup_bfd.o lookup_kas.o dropwatch: $(OBJFILES) - gcc -g -o dropwatch $(OBJFILES) $(LDFLAGS) + $(CC) -g -o dropwatch $(OBJFILES) $(LDFLAGS) %.o: %.c - gcc $(CFLAGS) $< + $(CC) $(CFLAGS) $< clean: rm -f dropwatch *.o -- 1.8.3.2
shibajee/buildroot
package/dropwatch/0001-build.patch
patch
mit
670
libbfd from binutils 2.23.1+ requires PACKAGE* definitions from autoconf. Patch from https://fedorahosted.org/dropwatch/ticket/5 Upstream status: new. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> diff -aurd src.orig/lookup.c src/lookup.c --- a/src/lookup.c 2011-10-03 22:51:38.000000000 +0400 +++ b/src/lookup.c 2013-02-18 09:13:56.683214438 +0400 @@ -27,13 +27,13 @@ #include <stdlib.h> #include <stdio.h> #include <sys/utsname.h> -#include <bfd.h> #include <string.h> #include <unistd.h> #include <sys/types.h> #include <sys/stat.h> #include "lookup.h" +#include <bfd.h> extern struct lookup_methods bfd_methods; extern struct lookup_methods kallsym_methods; diff -aurd src.orig/lookup.h src/lookup.h --- a/src/lookup.h 2011-10-03 22:51:38.000000000 +0400 +++ b/src/lookup.h 2013-02-18 09:11:00.506895026 +0400 @@ -28,6 +28,9 @@ #include <stdlib.h> #include <asm/types.h> +// satisfy PR 14072 in bfd.h +#define PACKAGE 1 +#define PACKAGE_VERSION 1 /* * Initalization routine diff -aurd src.orig/lookup_bfd.c src/lookup_bfd.c --- a/src/lookup_bfd.c 2012-01-16 22:34:11.000000000 +0400 +++ b/src/lookup_bfd.c 2013-02-18 09:14:02.472984310 +0400 @@ -25,13 +25,13 @@ #include <stdlib.h> #include <stdio.h> #include <sys/utsname.h> -#include <bfd.h> #include <string.h> #include <unistd.h> #include <sys/types.h> #include <sys/stat.h> #include "lookup.h" +#include <bfd.h> static int lookup_bfd_init(void) diff -aurd src.orig/lookup_kas.c src/lookup_kas.c --- a/src/lookup_kas.c 2012-05-31 02:43:23.000000000 +0400 +++ b/src/lookup_kas.c 2013-02-18 09:14:07.906101713 +0400 @@ -25,7 +25,6 @@ #include <stdlib.h> #include <stdio.h> #include <sys/utsname.h> -#include <bfd.h> #include <string.h> #include <unistd.h> #include <sys/types.h> @@ -33,6 +32,7 @@ #include <sys/queue.h> #include "lookup.h" +#include <bfd.h> struct symbol_entry { char *sym_name;
shibajee/buildroot
package/dropwatch/0002-binutils-2.23.1.patch
patch
mit
1,910