kvm: external module: dynamic unifdef
commit020e1c16434162fc3901da47369aec5bb04b286f
authorAvi Kivity <avi@redhat.com>
Thu, 30 Oct 2008 10:58:12 +0000 (30 12:58 +0200)
committerAvi Kivity <avi@redhat.com>
Thu, 30 Oct 2008 10:58:12 +0000 (30 12:58 +0200)
treeb1c12f187bfa99853e54965def48325cc07ffbab
parent1a66b27db80f98f1dcd1e2b859af00b9ce7709a6
kvm: external module: dynamic unifdef

The current unifdef solution mangles the source files to fit just one
architecture; this causes problem shipping one source tarball for many
consumers on different architectures.

Change to a dynamic model.  Instead of removing ifdefs, figure out which
symbols are defined on which architecture, and define them appropriately.

Signed-off-by: Avi Kivity <avi@redhat.com>
kvm/kernel/Makefile
kvm/kernel/unifdef.h [new file with mode: 0644]