File builders/llvm-0/builder-target.sh deleted (index 311a85b..0000000) |
1 |
|
src_name=llvm |
|
2 |
|
git_commit=8784c51c371a2ac3f5bba509786930bf32e97f34 |
|
3 |
|
git_url0=http://llvm.org/git/llvm.git |
|
4 |
|
|
|
5 |
|
src_dir=$src_dir_root/$src_name |
|
6 |
|
pkg_dir=$pkgs_dir_root/$pkg_name |
|
7 |
|
rm -Rf $pkg_dir |
|
8 |
|
mkdir -p $pkgs_dir_root |
|
9 |
|
cp -r $src_dir $pkg_dir |
|
10 |
|
|
|
11 |
|
cd $pkg_dir |
|
12 |
|
|
|
13 |
|
git checkout --force $git_commit |
|
14 |
|
git reset --hard |
|
15 |
|
|
|
16 |
|
build_dir=$builds_dir_root/$pkg_name-$target_gnu_triple |
|
17 |
|
rm -Rf $build_dir |
|
18 |
|
mkdir -p $build_dir |
|
19 |
|
cd $build_dir |
|
20 |
|
|
|
21 |
|
export PKG_CONFIG_LIBDIR= |
|
22 |
|
export PKG_CONFIG_SYSROOT_DIR=$target_sysroot |
|
23 |
|
|
|
24 |
|
OLD_PATH=$PATH |
|
25 |
|
export PATH=$cross_toolchain_dir_root/bin:$sdk_cmake_path/bin:$sdk_ninja_path/bin:$PATH |
|
26 |
|
|
|
27 |
|
cmake -G Ninja \ |
|
28 |
|
"-DCMAKE_C_COMPILER=$target_gnu_triple-gcc" \ |
|
29 |
|
"-DCMAKE_C_FLAGS=-pipe -O2 -fPIC -static-libgcc -static-libstdc++ -B$target_sysroot/nyan/glibc/current/lib -L$target_sysroot/nyan/glibc/current/lib -Wl,-rpath-link,$target_sysroot/nyan/glibc/current/lib" \ |
|
30 |
|
"-DCMAKE_CXX_COMPILER=$target_gnu_triple-g++" \ |
|
31 |
|
"-DCMAKE_CXX_FLAGS:STRING=-pipe -O2 -fPIC -static-libgcc -static-libstdc++ -B$target_sysroot/nyan/glibc/current/lib -L$target_sysroot/nyan/glibc/current/lib -Wl,-rpath-link,$target_sysroot/nyan/glibc/current/lib" \ |
|
32 |
|
-DPYTHON_EXECUTABLE=$sdk_python3_path/bin/python3 \ |
|
33 |
|
-DCMAKE_INSTALL_PREFIX=/nyan/llvm/0 \ |
|
34 |
|
-DCMAKE_BUILD_TYPE=Release \ |
|
35 |
|
-DLLVM_TARGETS_TO_BUILD=AMDGPU \ |
|
36 |
|
-DLLVM_INCLUDE_TESTS=off \ |
|
37 |
|
-DLLVM_ENABLE_PEDANTIC=off \ |
|
38 |
|
-DLLVM_PARALLEL_COMPILE_JOBS=2000 \ |
|
39 |
|
-DLLVM_PARALLEL_LINK_JOBS=2000 \ |
|
40 |
|
-DLLVM_BUILD_UTILS=off \ |
|
41 |
|
$pkg_dir |
|
42 |
|
|
|
43 |
|
cmake --build . -- -j $threads_n |
|
44 |
|
# ninja does not know of DESTDIR, the llvm-config gets ignore the sysroot anyway and will be useless on the target machine |
|
45 |
|
cmake -DCMAKE_INSTALL_PREFIX=$target_sysroot/nyan/llvm/0 -P ./cmake_install.cmake |
|
46 |
|
|
|
47 |
|
# cleanup and tidying |
|
48 |
|
# we get rid of llvm binaries and install our version of llvm-config for static linking hack (only mesa) with sysroot friendlyness |
|
49 |
|
rm -Rf $target_sysroot/nyan/$src_name/0/share |
|
50 |
|
rm -f $target_sysroot/nyan/$src_name/0/bin/* |
|
51 |
|
cp -f $nyan_root/builders/$pkg_name/llvm-config $target_sysroot/nyan/$src_name/0/bin/ |
|
52 |
|
find $target_sysroot/nyan/$src_name/0 -type f -name '*.la' | xargs rm -f |
|
53 |
|
find $target_sysroot/nyan/$src_name/0 -type f | while read f; do if file $f | egrep 'ELF.+(shared|executable)' >/dev/null; then $target_gnu_triple-strip -s $f; fi; done |
|
54 |
|
|
|
55 |
|
rm -Rf $build_dir $pkg_dir |
|
56 |
|
export PATH=$OLD_PATH |
|
File builders/mesa-vulkan-amd-sh-92f12952f32ee08cd302f8591ab059ca5f167239/contrib/x86_64_amdgpu_linux_gnu_vulkan_x11_drm_gcc.sh copied from file builders/mesa-vulkan-amd-sh-e014e3b6be638f4192d6eddd3d1033fd571f3a76/contrib/x86_64_amdgpu_linux_gnu_vulkan_x11_drm_gcc.sh (similarity 97%) (mode: 100755) (index 86590bd..5681596) |
... |
... |
cppflags="\ |
643 |
643 |
$cppflags_common \ |
$cppflags_common \ |
644 |
644 |
-DPACKAGE_VERSION=\"$version\" \ |
-DPACKAGE_VERSION=\"$version\" \ |
645 |
645 |
-DVERSION=\"$version\" \ |
-DVERSION=\"$version\" \ |
|
646 |
|
-I$build_dir \ |
|
647 |
|
-I$src_dir/src/vulkan/util \ |
646 |
648 |
-I$src_dir/src/gallium/include \ |
-I$src_dir/src/gallium/include \ |
647 |
649 |
-I$src_dir/src \ |
-I$src_dir/src \ |
648 |
650 |
-I$src_dir/include \ |
-I$src_dir/include \ |
|
... |
... |
$libxrender_cppflags \ |
653 |
655 |
$xorgproto_cppflags \ |
$xorgproto_cppflags \ |
654 |
656 |
" |
" |
655 |
657 |
#------------------------------------------------------------------------------- |
#------------------------------------------------------------------------------- |
|
658 |
|
export PYTHONPATH=$mako |
|
659 |
|
$python3 $src_dir/src/vulkan/util/vk_entrypoints_gen.py \ |
|
660 |
|
--xml $vulkan_api_xml \ |
|
661 |
|
--proto --weak \ |
|
662 |
|
--out-h vk_common_entrypoints.h \ |
|
663 |
|
--out-c vk_common_entrypoints.c \ |
|
664 |
|
--prefix vk_common |
|
665 |
|
$python3 $src_dir/src/vulkan/util/vk_dispatch_table_gen.py \ |
|
666 |
|
--xml $vulkan_api_xml \ |
|
667 |
|
--out-c vk_dispatch_table.c \ |
|
668 |
|
--out-h vk_dispatch_table.h |
|
669 |
|
$python3 $src_dir/src/vulkan/util/vk_extensions_gen.py \ |
|
670 |
|
--xml $vulkan_api_xml \ |
|
671 |
|
--out-c vk_extensions.c \ |
|
672 |
|
--out-h vk_extensions.h |
|
673 |
|
unset PYTHONPATH |
|
674 |
|
#------------------------------------------------------------------------------- |
656 |
675 |
$cc $cppflags $src_dir/src/vulkan/util/vk_debug_report.c \ |
$cc $cppflags $src_dir/src/vulkan/util/vk_debug_report.c \ |
657 |
676 |
-o $build_dir/vk_debug_report.o & |
-o $build_dir/vk_debug_report.o & |
658 |
677 |
$cc $cppflags $src_dir/src/vulkan/util/vk_util.c \ |
$cc $cppflags $src_dir/src/vulkan/util/vk_util.c \ |
|
... |
... |
$cc $cppflags $src_dir/src/vulkan/util/vk_format.c \ |
663 |
682 |
-o $build_dir/vk_format.o & |
-o $build_dir/vk_format.o & |
664 |
683 |
$cc $cppflags $src_dir/src/vulkan/util/vk_deferred_operation.c \ |
$cc $cppflags $src_dir/src/vulkan/util/vk_deferred_operation.c \ |
665 |
684 |
-o $build_dir/vk_deferred_operation.o & |
-o $build_dir/vk_deferred_operation.o & |
|
685 |
|
$cc $cppflags $src_dir/src/vulkan/util/vk_cmd_copy.c \ |
|
686 |
|
-o $build_dir/vk_cmd_copy.o & |
|
687 |
|
$cc $cppflags $src_dir/src/vulkan/util/vk_instance.c \ |
|
688 |
|
-o $build_dir/vk_instance.o & |
|
689 |
|
$cc $cppflags $src_dir/src/vulkan/util/vk_physical_device.c \ |
|
690 |
|
-o $build_dir/vk_physical_device.o & |
|
691 |
|
$cc $cppflags $src_dir/src/vulkan/util/vk_device.c \ |
|
692 |
|
-o $build_dir/vk_device.o & |
|
693 |
|
$cc $cppflags $build_dir/vk_common_entrypoints.c \ |
|
694 |
|
-o $build_dir/vk_common_entrypoints.o & |
|
695 |
|
$cc $cppflags $build_dir/vk_dispatch_table.c \ |
|
696 |
|
-o $build_dir/vk_dispatch_table.o & |
|
697 |
|
$cc $cppflags $build_dir/vk_extensions.c \ |
|
698 |
|
-o $build_dir/vk_extensions.o & |
666 |
699 |
#------------------------------------------------------------------------------- |
#------------------------------------------------------------------------------- |
667 |
700 |
$cc $cppflags $build_dir/vk_enum_to_str.c \ |
$cc $cppflags $build_dir/vk_enum_to_str.c \ |
668 |
701 |
-o $build_dir/vk_enum_to_str.o & |
-o $build_dir/vk_enum_to_str.o & |
|
... |
... |
$ar $build_dir/libvulkan_util.a \ |
675 |
708 |
$build_dir/vk_enum_to_str.o \ |
$build_dir/vk_enum_to_str.o \ |
676 |
709 |
$build_dir/vk_object.o \ |
$build_dir/vk_object.o \ |
677 |
710 |
$build_dir/vk_format.o \ |
$build_dir/vk_format.o \ |
678 |
|
$build_dir/vk_deferred_operation.o |
|
|
711 |
|
$build_dir/vk_deferred_operation.o \ |
|
712 |
|
$build_dir/vk_cmd_copy.o \ |
|
713 |
|
$build_dir/vk_instance.o \ |
|
714 |
|
$build_dir/vk_device.o \ |
|
715 |
|
$build_dir/vk_physical_device.o \ |
|
716 |
|
$build_dir/vk_common_entrypoints.o \ |
|
717 |
|
$build_dir/vk_dispatch_table.o \ |
|
718 |
|
$build_dir/vk_extensions.o |
679 |
719 |
#=============================================================================== |
#=============================================================================== |
680 |
720 |
|
|
681 |
721 |
|
|
|
... |
... |
$ar $build_dir/libmesautil.a $libmesautil_a |
1368 |
1408 |
# amd vulkan |
# amd vulkan |
1369 |
1409 |
export PYTHONPATH=$mako |
export PYTHONPATH=$mako |
1370 |
1410 |
#------------------------------------------------------------------------------ |
#------------------------------------------------------------------------------ |
1371 |
|
$python3 $src_dir/src/amd/vulkan/radv_entrypoints_gen.py \ |
|
|
1411 |
|
$python3 $src_dir/src/vulkan/util/vk_entrypoints_gen.py \ |
1372 |
1412 |
--xml $vulkan_api_xml \ |
--xml $vulkan_api_xml \ |
1373 |
|
--outdir $build_dir & |
|
|
1413 |
|
--proto --weak \ |
|
1414 |
|
--out-h radv_entrypoints.h \ |
|
1415 |
|
--out-c radv_entrypoints.c \ |
|
1416 |
|
--prefix radv \ |
|
1417 |
|
--device-prefix sqtt & |
1374 |
1418 |
#------------------------------------------------------------------------------ |
#------------------------------------------------------------------------------ |
1375 |
1419 |
$python3 $src_dir/src/amd/vulkan/radv_extensions.py \ |
$python3 $src_dir/src/amd/vulkan/radv_extensions.py \ |
1376 |
1420 |
--xml $vulkan_api_xml \ |
--xml $vulkan_api_xml \ |
File builders/xserver-0/builder-target.sh deleted (index 7633b53..0000000) |
1 |
|
src_name=xserver |
|
2 |
|
git_commit=31c1489eeb8c5391cd978303989de167819f0041 |
|
3 |
|
git_url0=git://anongit.freedesktop.org/xorg/xserver |
|
4 |
|
|
|
5 |
|
src_dir=$src_dir_root/$src_name |
|
6 |
|
pkg_dir=$pkgs_dir_root/$pkg_name |
|
7 |
|
rm -Rf $pkg_dir |
|
8 |
|
mkdir -p $pkgs_dir_root |
|
9 |
|
cp -r $src_dir $pkg_dir |
|
10 |
|
|
|
11 |
|
cd $pkg_dir |
|
12 |
|
|
|
13 |
|
git checkout --force $git_commit |
|
14 |
|
git reset --hard |
|
15 |
|
|
|
16 |
|
# missing sys/sysmacros.h |
|
17 |
|
cp $nyan_root/builders/$pkg_name/sysmacros.patch ./ |
|
18 |
|
patch -Np0 -i ./sysmacros.patch |
|
19 |
|
|
|
20 |
|
export NOCONFIGURE=1 |
|
21 |
|
./autogen.sh |
|
22 |
|
unset NOCONFIGURE |
|
23 |
|
|
|
24 |
|
build_dir=$builds_dir_root/$pkg_name-$target_gnu_triple |
|
25 |
|
rm -Rf $build_dir |
|
26 |
|
mkdir -p $build_dir |
|
27 |
|
cd $build_dir |
|
28 |
|
|
|
29 |
|
OLD_PATH=$PATH |
|
30 |
|
export PATH=$cross_toolchain_dir_root/bin:$PATH |
|
31 |
|
|
|
32 |
|
# do _NOT_ provide the pkgconfig for dbus because it's fmor systemd crap |
|
33 |
|
# **** WARNING **** the xkcomp pkgconfig file is modified to trick |
|
34 |
|
# the xserver to hardcode the path of the current xkbcomp |
|
35 |
|
export "PKG_CONFIG_LIBDIR=\ |
|
36 |
|
$target_sysroot/nyan/xkbcomp/0/lib/pkgconfig:\ |
|
37 |
|
$target_sysroot/nyan/drm/0/lib/pkgconfig:\ |
|
38 |
|
$target_sysroot/nyan/nyanuuid/0/lib/pkgconfig:\ |
|
39 |
|
$target_sysroot/nyan/nyanblkid/0/lib/pkgconfig:\ |
|
40 |
|
$target_sysroot/nyan/mudev/0/lib/pkgconfig:\ |
|
41 |
|
$target_sysroot/nyan/pixman/0/lib/pkgconfig:\ |
|
42 |
|
$target_sysroot/nyan/font-util/0/lib/pkgconfig:\ |
|
43 |
|
$target_sysroot/nyan/libxshmfence/0/lib/pkgconfig:\ |
|
44 |
|
$target_sysroot/nyan/libXau/0/lib/pkgconfig:\ |
|
45 |
|
$target_sysroot/nyan/libpthread-stubs/0/lib/pkgconfig:\ |
|
46 |
|
$target_sysroot/nyan/libxcb/0/lib/pkgconfig:\ |
|
47 |
|
$target_sysroot/nyan/libX11/0/lib/pkgconfig:\ |
|
48 |
|
$target_sysroot/nyan/libXext/0/lib/pkgconfig:\ |
|
49 |
|
$target_sysroot/nyan/libXdamage/0/lib/pkgconfig:\ |
|
50 |
|
$target_sysroot/nyan/libXfixes/0/lib/pkgconfig:\ |
|
51 |
|
$target_sysroot/nyan/libXxf86vm/0/lib/pkgconfig:\ |
|
52 |
|
$target_sysroot/nyan/libxkbfile/0/lib/pkgconfig:\ |
|
53 |
|
$target_sysroot/nyan/libpng/0/lib/pkgconfig:\ |
|
54 |
|
$target_sysroot/nyan/zlib/0/lib/pkgconfig:\ |
|
55 |
|
$target_sysroot/nyan/freetype/0/lib/pkgconfig:\ |
|
56 |
|
$target_sysroot/nyan/libfontenc/0/lib/pkgconfig:\ |
|
57 |
|
$target_sysroot/nyan/libXfont2/0/lib/pkgconfig:\ |
|
58 |
|
$target_sysroot/nyan/mesa-gl/0/lib/pkgconfig:\ |
|
59 |
|
$target_sysroot/nyan/libpciaccess/0/lib/pkgconfig:\ |
|
60 |
|
$target_sysroot/nyan/libepoxy/0/lib/pkgconfig:\ |
|
61 |
|
$target_sysroot/nyan/xtrans/0/share/pkgconfig:\ |
|
62 |
|
$target_sysroot/nyan/xorgproto/0/share/pkgconfig:\ |
|
63 |
|
$target_sysroot/nyan/util-macro/0/share/pkgconfig" |
|
64 |
|
|
|
65 |
|
export PKG_CONFIG_SYSROOT_DIR=$target_sysroot |
|
66 |
|
|
|
67 |
|
# at link time, the only way to tell gnu ld where to look for shared lib dependencies is to pass the -rpath-link option |
|
68 |
|
export CPP=$target_gnu_triple-cpp |
|
69 |
|
# xserver is not using nettle pkgconfig |
|
70 |
|
export "CPPFLAGS=-I$target_sysroot/nyan/nettle/0/include" |
|
71 |
|
export "CC=$target_gnu_triple-gcc -static-libgcc -B$target_sysroot/nyan/glibc/current/lib -L$target_sysroot/nyan/glibc/current/lib \ |
|
72 |
|
-Wl,-rpath-link,\ |
|
73 |
|
$target_sysroot/nyan/glibc/current/lib:\ |
|
74 |
|
$target_sysroot/nyan/mudev/0/lib:\ |
|
75 |
|
$target_sysroot/nyan/libxshmfence/0/lib:\ |
|
76 |
|
$target_sysroot/nyan/libXau/0/lib:\ |
|
77 |
|
$target_sysroot/nyan/libxcb/0/lib:\ |
|
78 |
|
$target_sysroot/nyan/libX11/0/lib:\ |
|
79 |
|
$target_sysroot/nyan/libXext/0/lib:\ |
|
80 |
|
$target_sysroot/nyan/libXdamage/0/lib:\ |
|
81 |
|
$target_sysroot/nyan/libXfixes/0/lib:\ |
|
82 |
|
$target_sysroot/nyan/libXxf86vm/0/lib:\ |
|
83 |
|
$target_sysroot/nyan/libxkbfile/0/lib:\ |
|
84 |
|
$target_sysroot/nyan/libpng/0/lib:\ |
|
85 |
|
$target_sysroot/nyan/freetype/0/lib:\ |
|
86 |
|
$target_sysroot/nyan/libXfont2/0/lib:\ |
|
87 |
|
$target_sysroot/nyan/libpciaccess/0/lib:\ |
|
88 |
|
$target_sysroot/nyan/libepoxy/0/lib:\ |
|
89 |
|
$target_sysroot/nyan/libfontenc/0/lib" |
|
90 |
|
export 'CFLAGS=-O2 -pipe -fPIC' |
|
91 |
|
# xserver is not using nettle pkgconfig |
|
92 |
|
export "LDFLAGS=-L$target_sysroot/nyan/nettle/0/lib" |
|
93 |
|
$pkg_dir/configure \ |
|
94 |
|
--build=$build_gnu_triple \ |
|
95 |
|
--host=$target_gnu_triple \ |
|
96 |
|
--prefix=/nyan/xserver/0 \ |
|
97 |
|
--disable-docs \ |
|
98 |
|
--disable-devel-docs \ |
|
99 |
|
--disable-unit-tests \ |
|
100 |
|
--enable-mitshm \ |
|
101 |
|
--disable-dga \ |
|
102 |
|
--disable-xdmcp \ |
|
103 |
|
--disable-xdm-auth-1 \ |
|
104 |
|
--enable-dri \ |
|
105 |
|
--enable-dri2 \ |
|
106 |
|
--enable-dri3 \ |
|
107 |
|
--enable-xf86vidmode \ |
|
108 |
|
--enable-glamor \ |
|
109 |
|
--enable-xshmfence \ |
|
110 |
|
--enable-xorg \ |
|
111 |
|
--disable-xvfb \ |
|
112 |
|
--disable-xnest \ |
|
113 |
|
--disable-xquartz \ |
|
114 |
|
--disable-xephyr \ |
|
115 |
|
--enable-input-thread \ |
|
116 |
|
--disable-selective-werror \ |
|
117 |
|
--with-fontrootdir=/share/fonts \ |
|
118 |
|
--with-xkb-path=/share/X11/xkb \ |
|
119 |
|
--with-module-dir=/lib64/xorg/modules \ |
|
120 |
|
--datadir=/share |
|
121 |
|
unset LDFLAGS |
|
122 |
|
unset CFLAGS |
|
123 |
|
unset CC |
|
124 |
|
unset CPP |
|
125 |
|
unset CPPFLAGS |
|
126 |
|
|
|
127 |
|
make -j $threads_n |
|
128 |
|
|
|
129 |
|
# WARNING: don't know if the protocol.txt file in /lib/xorg is a required runtime file |
|
130 |
|
|
|
131 |
|
#=============================================================================== |
|
132 |
|
#------------------------------------------------------------------------------- |
|
133 |
|
# the pkg-config file is configured for modules in /lib64/xorg/modules |
|
134 |
|
# need to protect the current modules for being overwritten |
|
135 |
|
mv -f $target_sysroot/lib64/xorg/modules $target_sysroot/lib64/xorg/modules.BK || true |
|
136 |
|
#------------------------------------------------------------------------------- |
|
137 |
|
# idem with the configuration data |
|
138 |
|
mv -f $target_sysroot/share/X11/xorg.conf.d $target_sysroot/share/X11/xorg.conf.d.BK || true |
|
139 |
|
#------------------------------------------------------------------------------- |
|
140 |
|
# we will have spurious xkb related files, protect the current ones |
|
141 |
|
mv -f $target_sysroot/share/X11/xkb $target_sysroot/share/X11/xkb.BK || true |
|
142 |
|
#------------------------------------------------------------------------------- |
|
143 |
|
# idem mith the autoconf macro |
|
144 |
|
mv -f $target_sysroot/share/aclocal/xorg-server.m4 $target_sysroot/share/aclocal/xorg-server.m4.KB || true |
|
145 |
|
#------------------------------------------------------------------------------- |
|
146 |
|
#=============================================================================== |
|
147 |
|
|
|
148 |
|
make install DESTDIR=$target_sysroot |
|
149 |
|
|
|
150 |
|
#=============================================================================== |
|
151 |
|
#------------------------------------------------------------------------------- |
|
152 |
|
# remove the spurious xkb related files |
|
153 |
|
rm -Rf $target_sysroot/share/X11/xkb |
|
154 |
|
#------------------------------------------------------------------------------- |
|
155 |
|
# move back the modules |
|
156 |
|
mkdir -p $target_sysroot/nyan/$src_name/0/lib64/xorg |
|
157 |
|
mv -f $target_sysroot/lib64/xorg/modules $target_sysroot/nyan/$src_name/0/lib64/xorg |
|
158 |
|
#------------------------------------------------------------------------------- |
|
159 |
|
# move back the configuration data |
|
160 |
|
mkdir -p $target_sysroot/nyan/$src_name/0/share/X11 |
|
161 |
|
mv -f $target_sysroot/share/X11/xorg.conf.d $target_sysroot/nyan/$src_name/0/share/X11 |
|
162 |
|
#------------------------------------------------------------------------------- |
|
163 |
|
# move back the autoconf macro |
|
164 |
|
mkdir -p $target_sysroot/nyan/$src_name/0/share/aclocal |
|
165 |
|
mv -f $target_sysroot/share/aclocal/xorg-server.m4 $target_sysroot/nyan/$src_name/0/share/aclocal |
|
166 |
|
#------------------------------------------------------------------------------- |
|
167 |
|
#=============================================================================== |
|
168 |
|
|
|
169 |
|
#=============================================================================== |
|
170 |
|
#------------------------------------------------------------------------------- |
|
171 |
|
# restore any previous modules |
|
172 |
|
mv -f $target_sysroot/lib64/xorg/modules.BK $target_sysroot/lib64/xorg/modules || true |
|
173 |
|
#------------------------------------------------------------------------------- |
|
174 |
|
# restore any previous configuration data |
|
175 |
|
mv -f $target_sysroot/share/X11/xorg.conf.d.BK $target_sysroot/share/X11/xorg.conf.d || true |
|
176 |
|
#------------------------------------------------------------------------------- |
|
177 |
|
# restore any previous xkb related files |
|
178 |
|
mv -f $target_sysroot/share/X11/xkb.BK $target_sysroot/share/X11/xkb || true |
|
179 |
|
#------------------------------------------------------------------------------- |
|
180 |
|
# restore any previous autoconf macro |
|
181 |
|
mv -f $target_sysroot/share/aclocal/xorg-server.m4.BK $target_sysroot/share/aclocal/xorg-server.m4 || true |
|
182 |
|
#------------------------------------------------------------------------------- |
|
183 |
|
#=============================================================================== |
|
184 |
|
|
|
185 |
|
#=============================================================================== |
|
186 |
|
#------------------------------------------------------------------------------- |
|
187 |
|
# if we have a xorg left-over |
|
188 |
|
rmdir -p $target_sysroot/lib64/xorg || true |
|
189 |
|
#------------------------------------------------------------------------------- |
|
190 |
|
# if we have configuration data left-over |
|
191 |
|
rmdir -p $target_sysroot/share/X11 || true |
|
192 |
|
#------------------------------------------------------------------------------- |
|
193 |
|
# if we have macros left-over |
|
194 |
|
rmdir -p $target_sysroot/share/aclocal || true |
|
195 |
|
#------------------------------------------------------------------------------- |
|
196 |
|
#=============================================================================== |
|
197 |
|
|
|
198 |
|
# cleanup |
|
199 |
|
rm -Rf $target_sysroot/nyan/$src_name/0/share/man |
|
200 |
|
find $target_sysroot/nyan/$src_name/0 -type f -iname '*.la' | xargs rm -f |
|
201 |
|
find $target_sysroot/nyan/$src_name/0 -type f | while read f; do if file $f | egrep 'ELF.+(shared|executable)' >/dev/null; then $target_gnu_triple-strip -s $f; fi; done |
|
202 |
|
|
|
203 |
|
rm -Rf $build_dir $pkg_dir |
|
204 |
|
OLD_PATH=$PATH |
|