build: enable using $(CONFIG_FOO) on the rhs of config files

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit d61ee8c155bb4c3640cea991f41ae25b38efde50)
hw: move headers to include/

Many of these should be cleaned up with proper qdev-/QOM-ification.
Right now there are many catch-all headers in include/hw/ARCH depending
on cpu.h, and this makes it necessary to compile these files per-target.
However, fixing this does not belong in these patches.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit ed04e96b4f0f0dfd9df92d698a1f6d77646f647b)
hw: make subdirectories for devices

Prepare the new directory structure.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit 3ba4518e41344a8e79bc101b2bd8e4bfe37187e0)
moxie: configure with default-configs file

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit 27c891b00d6d886760a45da355f36beb1a13fd12)
hw: move target-independent files to subdirectories

This patch tackles all files that are compiled once, moving
them to subdirectories of hw/.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit 52223115a2ec24cfa3ab889dd9e93f1a78db6539)
hw: move virtio devices to hw/ subdirectories

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit 6972264f518dd802d4f7af6bd5de7f5915460107)
hw: make all of hw/ide/ configurable via default-configs/

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit c1852a797371cf54aa83eee1f5505f64296b5072)
hw: make all of hw/usb/ configurable via default-configs/

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit bd3fa33b5fbe0bff0d3fa6040f4ce779d71e93a9)
hw: make all of hw/pci/ configurable via default-configs/

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit 63d78afd910435a8e5a1ed404d2050edd1a24d3e)
hw: move watchdogs to hw/watchdog, configure via default-configs/

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit 86c7fb1e2602dd2f5e50ca78c2a2c301a59f3cb7)
hw: move MC146818RTC to hw/timer/, configure via default-configs/

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit 006760f6732cb4f21136092618ac9dc499cad04a)
hw: move NICs to hw/net/, configure via default-configs/

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit 0c5042ac2e27ca72fb9556b5c364d9156cc74846)
hw: move block devices to hw/block/, configure via default-configs/

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit f07c174a7921bb5da9a098e0e6debbb186b7a621)
hw: move audio devices to hw/audio/, configure via default-configs/

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit 06031ce75a3840861c7ebb77afd3d00db6940062)
hw: move display devices to hw/display/, configure via default-configs/

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit 2a5c3016a34eaec21c22f2b66177f70e49f4f6ef)
hw: move I2C controllers to hw/i2c/, configure via default-configs/

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit 5e1313c1ea4d0d3582db28293981185785777612)
hw: move SSI controllers to hw/ssi/, configure via default-configs/

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit baaa33962ad7e996ce7bca8be6be4fdb5c75f5dd)
hw: move SCSI controllers to hw/scsi/, configure via default-configs/

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit c2ae32af9502006ef1adaf2f43479cf66bc61373)
hw: move more files to hw/xen/

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit 03d47d8ac54afa2073ef2440e1256275d205e18c)
hw: move char devices to hw/char/, configure via default-configs/

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit 44c02b3cbecf29be632775766b3e34bc3f1bb4bb)