xorg-server: fix xorg.conf installation from project/device dir

find_file_path has to be put into an if, otherwise its return
code (which is usually 1) will leak into post_makeinstall_target

Signed-off-by: Matthias Reichl <hias@horus.com>
This commit is contained in:
Matthias Reichl 2018-04-27 08:53:40 +02:00
parent 2e2e683a62
commit a24ce9c9fd

View File

@ -156,8 +156,9 @@ post_makeinstall_target() {
fi
mkdir -p $INSTALL/etc/X11
find_file_path config/xorg.conf &&
if find_file_path config/xorg.conf ; then
cp $FOUND_PATH $INSTALL/etc/X11
fi
if [ ! "$DEVTOOLS" = yes ]; then
rm -rf $INSTALL/usr/bin/cvt