Blame view

RIOT/pkg/u8g2/patches/0001-u8g2-add-riot-os-makefiles.patch 2.01 KB
fb11e647   vrobic   reseau statique a...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
  From e9c737b4cbfcc460c0274428ece41d6654c82f90 Mon Sep 17 00:00:00 2001
  From: Bas Stottelaar <basstottelaar@gmail.com>
  Date: Tue, 24 May 2016 20:17:39 +0200
  Subject: [PATCH 1/2] u8g2: add riot-os makefiles.
  
  ---
   Makefile                 | 22 ++++++++++++++++++++++
   csrc/Makefile            |  3 +++
   sys/sdl/common/Makefile  |  5 +++++
   sys/utf8/common/Makefile |  3 +++
   4 files changed, 33 insertions(+)
   create mode 100644 Makefile
   create mode 100644 csrc/Makefile
   create mode 100644 sys/sdl/common/Makefile
   create mode 100644 sys/utf8/common/Makefile
  
  diff --git a/Makefile b/Makefile
  new file mode 100644
  index 0000000..ec64fab
  --- /dev/null
  +++ b/Makefile
  @@ -0,0 +1,22 @@
  +DIRS += csrc
  +
  +# SDL can be used as a virtual display, but is for native target only.
  +ifneq (,$(filter u8g2_sdl,$(USEMODULE)))
  +  DIRS += sys/sdl/common
  +endif
  +
  +# UTF8 virtual display is not part of core. Therefore it is a separate module.
  +ifneq (,$(filter u8g2_utf8,$(USEMODULE)))
  +  DIRS += sys/utf8/common
  +endif
  +
  +# Compiling U8g2 will generate a lot of compiler warnings, which are treated
  +# as errors. For the sake of simplicity, ignore them.
  +CFLAGS += -Wno-empty-translation-unit \
  +          -Wno-newline-eof \
  +          -Wno-unused-parameter \
  +          -Wno-unused \
  +          -Wno-overlength-strings \
  +          -Wno-pointer-arith
  +
  +include $(RIOTBASE)/Makefile.base
  diff --git a/csrc/Makefile b/csrc/Makefile
  new file mode 100644
  index 0000000..1023a87
  --- /dev/null
  +++ b/csrc/Makefile
  @@ -0,0 +1,3 @@
  +MODULE = u8g2
  +
  +include $(RIOTBASE)/Makefile.base
  diff --git a/sys/sdl/common/Makefile b/sys/sdl/common/Makefile
  new file mode 100644
  index 0000000..ce8b90b
  --- /dev/null
  +++ b/sys/sdl/common/Makefile
  @@ -0,0 +1,5 @@
  +MODULE = u8g2_sdl
  +
  +CFLAGS += `sdl-config --cflags`
  +
  +include $(RIOTBASE)/Makefile.base
  diff --git a/sys/utf8/common/Makefile b/sys/utf8/common/Makefile
  new file mode 100644
  index 0000000..32e7913
  --- /dev/null
  +++ b/sys/utf8/common/Makefile
  @@ -0,0 +1,3 @@
  +MODULE = u8g2_utf8
  +
  +include $(RIOTBASE)/Makefile.base
  -- 
  2.8.1