diff options
| author | Gerd Hoffmann | 2018-03-13 18:17:28 +0100 |
|---|---|---|
| committer | Alex Williamson | 2018-03-13 18:17:28 +0100 |
| commit | 8e8ee8509a0d2d5a65d7533e6e9179b6f3b0a0d4 (patch) | |
| tree | 6463536ca62e55004da162ad9d34c6df40b16dc3 /scripts | |
| parent | sev/i386: add sev_get_capabilities() (diff) | |
| download | qemu-8e8ee8509a0d2d5a65d7533e6e9179b6f3b0a0d4.tar.gz qemu-8e8ee8509a0d2d5a65d7533e6e9179b6f3b0a0d4.tar.xz qemu-8e8ee8509a0d2d5a65d7533e6e9179b6f3b0a0d4.zip | |
standard-headers: add drm/drm_fourcc.h
So we can use the drm fourcc codes without a dependency on libdrm-devel.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/update-linux-headers.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/update-linux-headers.sh b/scripts/update-linux-headers.sh index e152417936..da9030a01c 100755 --- a/scripts/update-linux-headers.sh +++ b/scripts/update-linux-headers.sh @@ -39,6 +39,7 @@ cp_portable() { -e 'input-event-codes' \ -e 'sys/' \ -e 'pvrdma_verbs' \ + -e 'drm.h' \ > /dev/null then echo "Unexpected #include in input file $f". @@ -57,6 +58,7 @@ cp_portable() { -e 's/__attribute__((packed))/QEMU_PACKED/' \ -e 's/__inline__/inline/' \ -e 's/__BITS_PER_LONG/HOST_LONG_BITS/' \ + -e '/\"drm.h\"/d' \ -e '/sys\/ioctl.h/d' \ -e 's/SW_MAX/SW_MAX_/' \ -e 's/atomic_t/int/' \ @@ -152,6 +154,9 @@ for i in "$tmpdir"/include/linux/*virtio*.h "$tmpdir/include/linux/input.h" \ "$tmpdir/include/linux/pci_regs.h"; do cp_portable "$i" "$output/include/standard-headers/linux" done +mkdir -p "$output/include/standard-headers/drm" +cp_portable "$tmpdir/include/drm/drm_fourcc.h" \ + "$output/include/standard-headers/drm" rm -rf "$output/include/standard-headers/drivers/infiniband/hw/vmw_pvrdma" mkdir -p "$output/include/standard-headers/drivers/infiniband/hw/vmw_pvrdma" |
