• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/rpi-userland/rpi-userland-003-fix-musl-compile.patch
Maarten ter HuurneMaarten ter Huurne committed 7b36de16ea318 Oct 2014
Raw file
Source viewDiff to previous
 
1
From 198d93fab0659f7a548329d742de8b3e27cfd977 Mon Sep 17 00:00:00 2001
2
From: Maarten ter Huurne <maarten@treewalker.org>
3
Date: Fri, 12 Sep 2014 18:28:51 +0200
4
Subject: [PATCH] Combined musl compile fixes
5
​
6
The individual patches and their descriptions can be found here:
7
https://github.com/raspberrypi/userland/pull/201
8
​
9
Upstream status: accepted (4333d6d)
10
However, bumping to that revision is currently not an option since that
11
also pulls in 66338d3 which breaks Weston:
12
http://lists.busybox.net/pipermail/buildroot/2014-October/109309.html
13
​
14
Signed-off-by: Maarten ter Huurne <maarten@treewalker.org>
15
---
16
 containers/CMakeLists.txt                                  | 2 +-
17
 host_applications/linux/apps/hello_pi/CMakeLists.txt       | 2 +-
18
 host_applications/linux/apps/hello_pi/libs/vgfont/Makefile | 1 -
19
 interface/vcos/pthreads/vcos_platform.h                    | 3 ---
20
 interface/vcos/pthreads/vcos_pthreads.c                    | 2 +-
21
 interface/vmcs_host/linux/vcfilesys.c                      | 4 ++--
22
 6 files changed, 5 insertions(+), 9 deletions(-)
23
​
24
diff --git a/containers/CMakeLists.txt b/containers/CMakeLists.txt
25
index 721f74f..a29a885 100644
26
--- a/containers/CMakeLists.txt
27
+++ b/containers/CMakeLists.txt
28
@@ -13,7 +13,7 @@ add_definitions(-DDL_PATH_PREFIX="${VMCS_PLUGIN_DIR}/")
29
 
30
 SET( GCC_COMPILER_FLAGS -Wall -g -O2 -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wcast-qual -Wwrite-strings -Wundef )
31
 SET( GCC_COMPILER_FLAGS ${GCC_COMPILER_FLAGS} -Wextra )#-Wno-missing-field-initializers )
32
-SET( GCC_COMPILER_FLAGS ${GCC_COMPILER_FLAGS} -D__STDC_VERSION__=199901L )
33
+SET( GCC_COMPILER_FLAGS ${GCC_COMPILER_FLAGS} -std=c99 -D_POSIX_C_SOURCE=199309L )
34
 SET( GCC_COMPILER_FLAGS ${GCC_COMPILER_FLAGS} -Wno-missing-field-initializers )
35
 SET( GCC_COMPILER_FLAGS ${GCC_COMPILER_FLAGS} -Wno-unused-value )
36
 
37
diff --git a/host_applications/linux/apps/hello_pi/CMakeLists.txt b/host_applications/linux/apps/hello_pi/CMakeLists.txt
38
index ab4dae3..f2c6aef 100644
39
--- a/host_applications/linux/apps/hello_pi/CMakeLists.txt
40
+++ b/host_applications/linux/apps/hello_pi/CMakeLists.txt
41
@@ -24,7 +24,7 @@ add_subdirectory(hello_teapot)
42
 
43
 if(BUILD_FONT)
44
 set(VGFONT_SRCS libs/vgfont/font.c libs/vgfont/vgft.c libs/vgfont/graphics.c)
45
-set_source_files_properties(${VGFONT_SRCS} PROPERTIES COMPILE_DEFINITIONS "_HAVE_TIMER_T")
46
+set_source_files_properties(${VGFONT_SRCS} PROPERTIES COMPILE_DEFINITIONS)
47
 add_library(vgfont ${VGFONT_SRCS})
48
 
49
 add_subdirectory(hello_font)
50
diff --git a/host_applications/linux/apps/hello_pi/libs/vgfont/Makefile b/host_applications/linux/apps/hello_pi/libs/vgfont/Makefile
51
index d04fb08..1e2a22b 100755
52
--- a/host_applications/linux/apps/hello_pi/libs/vgfont/Makefile
53
+++ b/host_applications/linux/apps/hello_pi/libs/vgfont/Makefile
54
@@ -2,7 +2,6 @@ OBJS=font.o vgft.o graphics.o
55
 LIB=libvgfont.a
56
 
57
 INCLUDES+=-I$(SDKSTAGE)/usr/include/freetype2 -I$(SDKSTAGE)/usr/include -I$(SDKSTAGE)/usr/include/arm-linux-gnueabi
58
-CFLAGS+=-D_HAVE_TIMER_T
59
 
60
 include ../../Makefile.include
61
 
62
diff --git a/interface/vcos/pthreads/vcos_platform.h b/interface/vcos/pthreads/vcos_platform.h
63
index 468098b..2095e25 100755
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.