f9micro / f9-kernel

An efficient and secure microkernel built for ARM Cortex-M cores, inspired by L4
Other
679 stars 145 forks source link

kconfig/lxdialog: get ncurses CFLAGS with pkg-config and fixed btn color #119

Closed louisom closed 7 years ago

louisom commented 7 years ago

Fixed from vanilla kernel commit: be8af2d54a669

This makes "make menuconfig" also work on systems where ncurses is not installed in a standard location (such as on NixOS).

This patch changes ldflags() and ccflags() so that it tries pkg-config first, and only if pkg-config fails does it go back to the fallback/manual checks.

And, adding -DNCURSES_WIDECHAR=1 CFLAGS to prevent ncurses rendering wrong color on button when changing dialog color by wbkgdset().

jserv commented 7 years ago

@grapherd, Great work! Can you check Travis-CI test report as well? https://travis-ci.org/f9micro/f9-kernel/builds/164224044

louisom commented 7 years ago

@jserv It seems like travis CI problem, since it report

WARNING: The following packages cannot be authenticated!
  gcc-arm-none-eabi

After adding -y --force-yes,travis CI will install gcc-arm-none-eabi fine.