Andreas Müller [Wed, 14 Dec 2016 11:42:00 +0000 (12:42 +0100)]
libsdl2: add append to fix build
Our vivante driver does not support the API libsdl2 expects.
Fixes:
<workdir>/cortexa9t2hf-neon-mx6qdl-angstrom-linux-gnueabi/libsdl2/2.0.5-r0/SDL2-2.0.5/src/video/vivante/SDL_vivantevideo.c: In function 'VIVANTE_Create':
<workdir>/cortexa9t2hf-neon-mx6qdl-angstrom-linux-gnueabi/libsdl2/2.0.5-r0/SDL2-2.0.5/src/video/vivante/SDL_vivantevideo.c:100:30: error: 'VIVANTE_GLES_LoadLibrary' undeclared (first use in this function)
device->GL_LoadLibrary = VIVANTE_GLES_LoadLibrary;
^~~~~~~~~~~~~~~~~~~~~~~~
<workdir>/cortexa9t2hf-neon-mx6qdl-angstrom-linux-gnueabi/libsdl2/2.0.5-r0/SDL2-2.0.5/src/video/vivante/SDL_vivantevideo.c:100:30: note: each undeclared identifier is reported only once for each function it appears in
<workdir>/cortexa9t2hf-neon-mx6qdl-angstrom-linux-gnueabi/libsdl2/2.0.5-r0/SDL2-2.0.5/src/video/vivante/SDL_vivantevideo.c:101:33: error: 'VIVANTE_GLES_GetProcAddress' undeclared (first use in this function)
device->GL_GetProcAddress = VIVANTE_GLES_GetProcAddress;
^~~~~~~~~~~~~~~~~~~~~~~~~~~
<workdir>/cortexa9t2hf-neon-mx6qdl-angstrom-linux-gnueabi/libsdl2/2.0.5-r0/SDL2-2.0.5/src/video/vivante/SDL_vivantevideo.c:102:32: error: 'VIVANTE_GLES_UnloadLibrary' undeclared (first use in this function)
device->GL_UnloadLibrary = VIVANTE_GLES_UnloadLibrary;
^~~~~~~~~~~~~~~~~~~~~~~~~~
<workdir>/cortexa9t2hf-neon-mx6qdl-angstrom-linux-gnueabi/libsdl2/2.0.5-r0/SDL2-2.0.5/src/video/vivante/SDL_vivantevideo.c:103:32: error: 'VIVANTE_GLES_CreateContext' undeclared (first use in this function)
device->GL_CreateContext = VIVANTE_GLES_CreateContext;
^~~~~~~~~~~~~~~~~~~~~~~~~~
<workdir>/cortexa9t2hf-neon-mx6qdl-angstrom-linux-gnueabi/libsdl2/2.0.5-r0/SDL2-2.0.5/src/video/vivante/SDL_vivantevideo.c:104:30: error: 'VIVANTE_GLES_MakeCurrent' undeclared (first use in this function)
device->GL_MakeCurrent = VIVANTE_GLES_MakeCurrent;
^~~~~~~~~~~~~~~~~~~~~~~~
<workdir>/cortexa9t2hf-neon-mx6qdl-angstrom-linux-gnueabi/libsdl2/2.0.5-r0/SDL2-2.0.5/src/video/vivante/SDL_vivantevideo.c:105:34: error: 'VIVANTE_GLES_SetSwapInterval' undeclared (first use in this function)
device->GL_SetSwapInterval = VIVANTE_GLES_SetSwapInterval;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
<workdir>/cortexa9t2hf-neon-mx6qdl-angstrom-linux-gnueabi/libsdl2/2.0.5-r0/SDL2-2.0.5/src/video/vivante/SDL_vivantevideo.c:106:34: error: 'VIVANTE_GLES_GetSwapInterval' undeclared (first use in this function)
device->GL_GetSwapInterval = VIVANTE_GLES_GetSwapInterval;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
<workdir>/cortexa9t2hf-neon-mx6qdl-angstrom-linux-gnueabi/libsdl2/2.0.5-r0/SDL2-2.0.5/src/video/vivante/SDL_vivantevideo.c:107:29: error: 'VIVANTE_GLES_SwapWindow' undeclared (first use in this function)
device->GL_SwapWindow = VIVANTE_GLES_SwapWindow;
^~~~~~~~~~~~~~~~~~~~~~~
<workdir>/cortexa9t2hf-neon-mx6qdl-angstrom-linux-gnueabi/libsdl2/2.0.5-r0/SDL2-2.0.5/src/video/vivante/SDL_vivantevideo.c:108:32: error: 'VIVANTE_GLES_DeleteContext' undeclared (first use in this function)
device->GL_DeleteContext = VIVANTE_GLES_DeleteContext;
^~~~~~~~~~~~~~~~~~~~~~~~~~
<workdir>/cortexa9t2hf-neon-mx6qdl-angstrom-linux-gnueabi/libsdl2/2.0.5-r0/SDL2-2.0.5/src/video/vivante/SDL_vivantevideo.c: In function 'VIVANTE_CreateWindow':
<workdir>/cortexa9t2hf-neon-mx6qdl-angstrom-linux-gnueabi/libsdl2/2.0.5-r0/SDL2-2.0.5/src/video/vivante/SDL_vivantevideo.c:285:29: warning: implicit declaration of function 'SDL_EGL_CreateSurface' [-Wimplicit-function-declaration]
data->egl_surface = SDL_EGL_CreateSurface(_this, data->native_window);
^~~~~~~~~~~~~~~~~~~~~
<workdir>/cortexa9t2hf-neon-mx6qdl-angstrom-linux-gnueabi/libsdl2/2.0.5-r0/SDL2-2.0.5/src/video/vivante/SDL_vivantevideo.c:285:27: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
data->egl_surface = SDL_EGL_CreateSurface(_this, data->native_window);
^
<workdir>/cortexa9t2hf-neon-mx6qdl-angstrom-linux-gnueabi/libsdl2/2.0.5-r0/SDL2-2.0.5/src/video/vivante/SDL_vivantevideo.c: In function 'VIVANTE_DestroyWindow':
<workdir>/cortexa9t2hf-neon-mx6qdl-angstrom-linux-gnueabi/libsdl2/2.0.5-r0/SDL2-2.0.5/src/video/vivante/SDL_vivantevideo.c:306:13: warning: implicit declaration of function 'SDL_EGL_DestroySurface' [-Wimplicit-function-declaration]
SDL_EGL_DestroySurface(_this, data->egl_surface);
^~~~~~~~~~~~~~~~~~~~~~
Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Tom Hochstein [Tue, 13 Dec 2016 17:55:44 +0000 (11:55 -0600)]
weston: Fix build on i.MX 6SL
Weston requires egl and glesv2 together, or neither. Since the i.MX 6SL
can only provide egl, we configure weston to work without egl. A build
break occurred due to i.MX patches which should not be applied for 6SL.
Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Sona Sarmadi [Wed, 30 Nov 2016 12:17:39 +0000 (13:17 +0100)]
linux-qoriq: fix CVE-2016-0758
Fixes a flaw in the Linux kernel's ASN.1 DER decoder processed
certain certificate files with tags of indefinite length. A local,
unprivileged user could use a specially crafted X.509 certificate
DER file to crash the system or, potentially, escalate their
privileges on the system.
References:
https://lkml.org/lkml/2016/5/12/270
Upstream patch:
https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/patch/
?id=af00ae6ef5a2c73f21ba215c476570b7772a14fb [backported from stable 3.16]
Signed-off-by: Sona Sarmadi <sona.sarmadi@enea.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Sona Sarmadi [Wed, 30 Nov 2016 12:17:38 +0000 (13:17 +0100)]
linux-qoriq: fix CVE-2016-2053
The asn1_ber_decoder function in lib/asn1_decoder.c in the Linux
kernel before 4.3 allows attackers to cause a denial of service
(panic) via an ASN.1 BER file that lacks a public key, leading
to mishandling by the public_key_verify_signature function in
crypto/asymmetric_keys/public_key.c.
Dominic Sacré [Mon, 21 Nov 2016 15:53:25 +0000 (16:53 +0100)]
linux-fslc-imx-rt: Add patch to support external imx-gpu-viv driver
Export functions swait_prepare_locked() and swait_finish_locked() to
make them available to the external imx-gpu-viv driver module.
Remove the check whether MACHINE_USES_VIVANTE_KERNEL_DRIVER_MODULE is
set; both the built-in driver and the external module now work with the
RT kernel.
Signed-off-by: Dominic Sacré <dominic.sacre@gmx.de> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Tom Hochstein [Sat, 19 Nov 2016 01:11:49 +0000 (19:11 -0600)]
weston: Use compiler settings provided by IMX-GPU driver pkg-config
The IMX-GPU driver now provides compiler settings through pkg-config,
so don't set them explicitly. The package had to be patched to
link the compositor to egl.
Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Fabio Berton [Thu, 17 Nov 2016 17:22:24 +0000 (15:22 -0200)]
linux-fslc: Enable TRACER support
Fix warning:
WARNING: lttng-modules-2.8.0+gitAUTOINC+6e4fc6f36d-r0 do_package:
lttng-modules: no modules were created; this may be due to
CONFIG_TRACEPOINTS not being enabled in your kernel.
Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Fabio Berton [Thu, 17 Nov 2016 17:22:23 +0000 (15:22 -0200)]
linux-imx: Enable TRACER support
Fix warning:
WARNING: lttng-modules-2.8.0+gitAUTOINC+6e4fc6f36d-r0 do_package:
lttng-modules: no modules were created; this may be due to
CONFIG_TRACEPOINTS not being enabled in your kernel.
Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Andreas Müller [Tue, 15 Nov 2016 15:30:07 +0000 (16:30 +0100)]
qtbase: do not pass -DEGL_API_FB=1 for x11 in distro features
* sympthoms:
* qml applications complain/crash with 'Failed to create OpenGL context...'
* qt5-opengles2-test hangs forever without displaying anything
* analysis:
qtbase's configure complains:
<...>/usr/include/EGL/eglvivante.h:117:16: note: class type '_FBDisplay' is incomplete
and configure ends up with no X11 support:
EGLFS ................ no
EGLFS i.MX6 ........ no
EGLFS i.MX6 Wayland. no
EGLFS EGLDevice .... no
EGLFS GBM .......... no
EGLFS Mali ......... no
EGLFS Raspberry Pi . no
EGLFS X11 .......... no
LinuxFB .............. no
Mir client............ no
XCB .................. yes (system library)
EGL on X ........... no
qtbase: Allow to build eglfs with x11 in DISTRO_FEATURES
* even when x11 is in DISTRO_FEATURES someone might configure qtbase
to build with eglfs, that works OK with Qt 5.5.1, because
-DEGL_API_FB=1 is also passed through
mkspecs/devices/linux-imx6-g++/qmake.conf
but with 5.6 and 5.7 it fails when X11 headers are include with their
own Status enum (the same errors like before
https://codereview.qt-project.org/#/c/105116/2)
Adding -DEGL_API_FB=1 like linux-imx6-g++/qmake.conf does is simplest
workaround to prevent imx-gpu-viv from including Xlib from
EGL/eglvivante.h
* comments on original commit (at today's' environment):
* it breaks GL support for X11
* in meta-freescale's qtbase.bbappend eglfs is disabled explicitly when
x11 in DISTRO_FEATURES so it seems that vivante driver does not support
eglfs and x11 at the same build.
Tested: setting 'eglfs' in PACKAGECONFIG builds fine but bare eglfs
support is skipped.
Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
- 615fdbc Merge remote-tracking branch 'origin/master' into 2016.11+fslc
- 38cacda Merge branch 'master' of git://git.denx.de/u-boot-tegra
- a8d0526 ARM: tegra186: call secure monitor for all cache-wide ops
- 1ab557a armv8: add hooks for all cache-wide operations
- b9ae641 ARM: tegra: translate __asm_flush_l3_cache to assembly
- 6db8e17 ARM: tegra: ensure nvtboot_boot_x0 alignment
- d8c4eb6 Merge branch 'master' of git://git.denx.de/u-boot-net
- aa555fe net: use random ethernet address if invalid and not zero
- 6ecf9e2 net: mvgbe: Fix build error with CONFIG_PHYLIB
- f018545 net: phy: micrel: center FLP burst timing at 16ms
- 2162245 ARM: tegra: enable Ethernet on p2771-0000
- 31c1ff9 ARM: tegra: add DWC EQoS (ethernet) to Tegra186 DT
- 2b950f3 ARM: tegra: configure Ethernet address on Tegra186
- 86919a2 ARM: tegra: add SoC-level hook for board_late_init()
- ba4dfef net: add driver for Synopsys Ethernet QoS device
- afb970f dt: net: add DWC EQoS binding
- dac09fc wandboard: Make Ethernet functional again
- 0f7c6cd mkimage: Allow including a ramdisk in FIT auto mode
- baade49 travis-ci: Try harder to build all ARM targets
- e0f2406 buildman: Fix building based on 'options' field
- 4b6035d mx6sabresd: Make Ethernet functional again
- 97bb1f0 engicam: icorem6: Fix config files
- 68fd5c1 armv8: define get_ticks() for the ARMv8 Generic Timer
- 8add679 doc: update README.arm64
- 2a380cc tools: imximage: check return value when open the plugin file
- ae3de0d image: Protect against overflow in unknown_msg()
- eb9e699 colibri_pxa270: drop lzma support for space reason
- eef55e5 Merge branch 'master' of git://git.denx.de/u-boot-usb
- dd93a8e dfu: align array in dfu_get_dev_type with enum dfu_device_type
- dbdc274 cmd: dfu: Add error handling for board_usb_init
- 7fd1173 Merge git://git.denx.de/u-boot-rockchip
- 4594ac0 rk3288: kconfig: remove duplicate definition of SPL_MMC_SUPPORT
- 3f3e1e3 rockchip: doc: add GPT partition layout
- 7f35bbb rockchip: use rockchip linux partitions layout
- 612a2a0 dts: rk3288: remove node in dmc which not need anymore
- 7d6c78f rk3288: sdram: auto-detect the capacity
- cd2f6b8 rk3288: config change for enable dram capacity auto-detect.
- 0717dde evb-rk3399: config: set emmc as default boot dev
- 1b64a05 rk3288: fix reg address for GRF_SOC_CON2
- 27b95d2 rk3399: disable the clock multiplier support when SoC init
- 5564ed5 rockchip: rk3288: Move rockchip_get_cru() out of the driver
- c8a6bc9 rockchip: rk3399: Move rockchip_get_cru() out of the driver
- 92ac73e rockchip: rk3036: Move rockchip_get_cru() out of the driver
- 8dfb4a2 clk: rk3399: fix rockchip_get_cru
- 6016982 rockchip: RK3288 needs fdt and initrd below 256M now
Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
- properly pass on color format in simplified JPEG encoder interface
- add alternative write-callback-style encoding mode
also add encode example variant which uses write-callback style output
- add support for "fake grayscale mode" in encoders
this is done by using I420 internally and filling the U and V planes
with 0x80 bytes
- make sure JPEG quantization table is copied in standardized zig zag order
the VPU does not, so this has to be done explicitely
Signed-off-by: Carlos Rafael Giani <dv@pseudoterminal.org> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
imx-gst1.0-plugin: configure for available platforms only
For the MACHINEOVERRIDES "mx6dl" and "mx6q" PLATFORM is set to MX6DL and MX6Q,
respectively, resulting in the following error from the configure script:
| configure: error: No target platform specified!
| Use ./configure PLATFORM=(MX6/MX6QP/MX6SL/MX6SX/MX6UL/MX7D) to retry
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Richard Purdie [Wed, 2 Nov 2016 12:11:06 +0000 (12:11 +0000)]
linux-mgftool: Fix taskhash changed error
We need to expand KERNEL_VERSION at runtime, not at parse time. The
class extension code can expand variables early so remove the variable
from the datastore temporarily.
Change-Id: Ic0c8c8f62447e8368ce19c2420812f75009a295f Reported-by: Jun Zhu <junzhu@nxp.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Adrian Dudau [Mon, 31 Oct 2016 14:53:01 +0000 (15:53 +0100)]
linux-qoriq: fix CVE-2016-5696
net/ipv4/tcp_input.c in the Linux kernel before 4.7 does not
properly determine the rate of challenge ACK segments, which
makes it easier for man-in-the-middle attackers to hijack TCP
sessions via a blind in-window attack.
https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/
patch/?id=72c2d3bccaba4a0a4de354f9d2d24eccd05bfccf (This a follow-up
to "tcp: make challenge acks less predictable)
Signed-off-by: Adrian Dudau <adrian.dudau@enea.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Fabio Berton [Thu, 27 Oct 2016 11:50:31 +0000 (09:50 -0200)]
linux-fslc-imx: Enable TRACER support
Fix warning:
WARNING: lttng-modules-2.8.0+gitAUTOINC+6e4fc6f36d-r0 do_package:
lttng-modules: no modules were created; this may be due to
CONFIG_TRACEPOINTS not being enabled in your kernel.
Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Yuqing Zhu [Thu, 13 Oct 2016 01:59:54 +0000 (09:59 +0800)]
gstreamer1.0-plugins-bad: Fix MRT cannot work in GLES3.0
1. Add #ifdefine Marco to avoid redefinition of GL_COLOR_ATTACHMENT(1,2).
2. Change to use glBlitFramebuffer for textures copy. glCopyTexImage2D
cannot work because we cannot get texture internal format.
Signed-off-by: Yuqing Zhu <carol.zhu@nxp.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>