mesa/sanitize-tarball.sh
Igor Gnatenko 037ad6c04b 10.0 upstream release
v1: dropped libdricore.so* (dropped by upstream)
    updated libxatracker.so.1 to libxatracker.so.2 (updated by upstream)
    updated patches and tools:
    make-git-snapshot updated for 10.0 branch
    sanitize-tarball updated for new functions
    nv-50 build fix updated for new file location
    dropped no-useless-vdpau, because not needed for new mesa stack

v2: Added msm_dri.so (added by upstream)

v3: Fix sanitize for vl_level_supported()
    Reported-and-tested-by: Kirill Rusinov <carasin.berlogue@mail.ru>

v4: Add reference to spec
    Drop old patch nv50

Tested-by: Kirill Rusinov <carasin.berlogue@mail.ru>
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
Reference: https://bugzilla.redhat.com/show_bug.cgi?id=1036361
2013-12-05 10:35:54 +04:00

56 lines
1.1 KiB
Bash
Executable File

#!/bin/sh
#
# usage: sanitize-tarball.sh [tarball]
if [ "x$1" = "x" ]; then
echo "Usage: sanitize-tarball.sh [tarball]"
exit 1
fi
if [ -e /usr/bin/pxz ]; then
XZ=/usr/bin/pxz
else
XZ=/usr/bin/xz
fi
dirname=$(basename $(basename "$1" .tar.bz2) .tar.xz)
tar xf "$1"
pushd $dirname
cat > src/gallium/auxiliary/vl/vl_mpeg12_decoder.c << EOF
#include "vl_mpeg12_decoder.h"
struct pipe_video_codec *
vl_create_mpeg12_decoder(struct pipe_context *context,
const struct pipe_video_codec *templat)
{
return NULL;
}
EOF
cat > src/gallium/auxiliary/vl/vl_decoder.c << EOF
#include "vl_decoder.h"
bool
vl_profile_supported(struct pipe_screen *screen, enum pipe_video_profile profile,
enum pipe_video_entrypoint entrypoint)
{
return false;
}
int
vl_level_supported(struct pipe_screen *screen, enum pipe_video_profile profile)
{
return 0;
}
struct pipe_video_codec *
vl_create_decoder(struct pipe_context *pipe,
const struct pipe_video_codec *templat)
{
return NULL;
}
EOF
popd
tar cf - $dirname | $XZ > $dirname.tar.xz