diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2018-04-17 18:33:16 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2018-04-17 18:33:21 +0200 |
commit | 7982e121ef3870293a5d58ee4b9f05e6982cab0e (patch) | |
tree | eb362d9772b1f14f5ee17c23dafbe4939395ec44 | |
parent | 9b389bd0696b7bbb33e15eeac1267c313ce9becb (diff) | |
download | ptxdist-7982e121ef3870293a5d58ee4b9f05e6982cab0e.tar.gz ptxdist-7982e121ef3870293a5d58ee4b9f05e6982cab0e.tar.xz |
fbterm: fix building with gcc 7.x
Import patch from Debian and make sure epoll is used.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r-- | patches/fbterm-1.7.0/0001-Fix-build-with-gcc-6.patch | 100 | ||||
-rw-r--r-- | patches/fbterm-1.7.0/series | 4 | ||||
-rw-r--r-- | rules/fbterm.make | 4 |
3 files changed, 107 insertions, 1 deletions
diff --git a/patches/fbterm-1.7.0/0001-Fix-build-with-gcc-6.patch b/patches/fbterm-1.7.0/0001-Fix-build-with-gcc-6.patch new file mode 100644 index 000000000..c03fd5e8a --- /dev/null +++ b/patches/fbterm-1.7.0/0001-Fix-build-with-gcc-6.patch @@ -0,0 +1,100 @@ +From: Nobuhiro Iwamatsu <iwamatsu@nigauri.org> +Date: Wed, 13 Jul 2016 12:02:10 +0900 +Subject: [PATCH] Fix build with gcc-6 + +Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org> +--- + src/lib/vterm.cpp | 4 ++-- + src/lib/vterm_states.cpp | 18 +++++++++--------- + 2 files changed, 11 insertions(+), 11 deletions(-) + +diff --git a/src/lib/vterm.cpp b/src/lib/vterm.cpp +index 3a5dcc78986e..f79f44c1e1f3 100644 +--- a/src/lib/vterm.cpp ++++ b/src/lib/vterm.cpp +@@ -68,13 +68,13 @@ u8 VTerm::control_map[MAX_CONTROL_CODE], VTerm::escape_map[NR_STATES][MAX_ESCAPE + + void VTerm::init_state() + { +- for (u8 i = 1; control_sequences[i].code != (u16)-1; i++) { ++ for (u8 i = 1; control_sequences[i].code != (u16)0xFFFF; i++) { + control_map[control_sequences[i].code] = i; + } + + u8 state = ESnormal; + for (u8 i = 1; ; i++) { +- if (escape_sequences[i].code == (u16)-1) { ++ if (escape_sequences[i].code == (u16)0xFFFF) { + state++; + if (state == NR_STATES) break; + } else { +diff --git a/src/lib/vterm_states.cpp b/src/lib/vterm_states.cpp +index 49e75887961f..6aaa8b301316 100644 +--- a/src/lib/vterm_states.cpp ++++ b/src/lib/vterm_states.cpp +@@ -39,14 +39,14 @@ const VTerm::Sequence VTerm::control_sequences[] = { + { 0x1B, 0, ESesc }, + { 0x7F, 0, ESkeep }, + { 0x9B, 0, ESsquare }, +- { -1} ++ { 0xFFFF} + }; + + const VTerm::Sequence VTerm::escape_sequences[] = { + { 0, 0, ESnormal }, + + // ESnormal +- { -1 }, ++ { 0xFFFF }, + + // ESesc + { '[', &VTerm::clear_param, ESsquare }, +@@ -65,7 +65,7 @@ const VTerm::Sequence VTerm::escape_sequences[] = { + { '8', &VTerm::restore_cursor, ESnormal }, + { '>', &VTerm::keypad_numeric, ESnormal }, + { '=', &VTerm::keypad_application, ESnormal }, +- { -1 }, ++ { 0xFFFF }, + + // ESsquare + { '[', 0, ESfunckey }, +@@ -104,7 +104,7 @@ const VTerm::Sequence VTerm::escape_sequences[] = { + { '`', &VTerm::cursor_position_col, ESnormal }, + { ']', &VTerm::linux_specific, ESnormal }, + { '}', &VTerm::fbterm_specific, ESnormal }, +- { -1 }, ++ { 0xFFFF }, + + // ESnonstd + { '0' | ADDSAME(9), &VTerm::set_palette, ESkeep }, +@@ -112,25 +112,25 @@ const VTerm::Sequence VTerm::escape_sequences[] = { + { 'a' | ADDSAME(5), &VTerm::set_palette, ESkeep }, + { 'P', &VTerm::begin_set_palette, ESkeep }, + { 'R', &VTerm::reset_palette, ESnormal }, +- { -1 }, ++ { 0xFFFF }, + + // ESpercent + { '@', &VTerm::clear_utf8, ESnormal }, + { 'G', &VTerm::set_utf8, ESnormal }, + { '8', &VTerm::set_utf8, ESnormal }, +- { -1 }, ++ { 0xFFFF }, + + // EScharset + { '0', &VTerm::set_charset, ESnormal }, + { 'B', &VTerm::set_charset, ESnormal }, + { 'U', &VTerm::set_charset, ESnormal }, + { 'K', &VTerm::set_charset, ESnormal }, +- { -1 }, ++ { 0xFFFF }, + + // EShash + { '8', &VTerm::screen_align, ESnormal }, +- { -1 }, ++ { 0xFFFF }, + + // ESfunckey +- { -1 }, ++ { 0xFFFF }, + }; diff --git a/patches/fbterm-1.7.0/series b/patches/fbterm-1.7.0/series new file mode 100644 index 000000000..c70798733 --- /dev/null +++ b/patches/fbterm-1.7.0/series @@ -0,0 +1,4 @@ +# generated by git-ptx-patches +#tag:base --start-number 1 +0001-Fix-build-with-gcc-6.patch +# 19084229c22a14dddce65a2d2e8fdf27 - git-ptx-patches magic diff --git a/rules/fbterm.make b/rules/fbterm.make index 02003b0ed..a743a56b4 100644 --- a/rules/fbterm.make +++ b/rules/fbterm.make @@ -36,7 +36,9 @@ FBTERM_CONF_TOOL := autoconf FBTERM_CONF_OPT := \ $(CROSS_AUTOCONF_USR) \ --$(call ptx/endis, PTXCONF_FBTERM_GPM)-gpm \ - --disable-vesa + --disable-vesa \ + --enable-epoll \ + --enable-signalfd # ---------------------------------------------------------------------------- # Target-Install |