On Tue, 24 Oct 2023 at 06:12, qi...@fujitsu.com <qi...@fujitsu.com> wrote: > > Hi,Alex > > As you said, it is not-that-elegant bit of code. > But DATADIR is used as a part of CPPFLAGS for compiling c files in tests, > such as libkeymap/libkeymap-test01.c, libkbdfile/libkbdfile-test13.c and > others. > sample: > > libkeymap/libkeymap-test01.c: f = fopen(DATADIR > "/data/libkeymap/charset-keymap0.map", "r"); libkeymap/libkeymap-test09.c: > setenv("LOADKEYS_INCLUDE_PATH", DATADIR "/data/libkeymap", 1);
I see, thanks. I would suggest that Makefile.am is patched with a dedicated patch that sets DATADIR to ptest directory on target (you can mark it Inappropriate), so that the change is robust (sed expressions are prone to silent regressions, and), and happens before actual build, so no 'make clean' is needed. Alex
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#189642): https://lists.openembedded.org/g/openembedded-core/message/189642 Mute This Topic: https://lists.openembedded.org/mt/102128673/21656 Group Owner: openembedded-core+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-