aux: Rename aux.[ch] to auxbus.[ch] for the benefit of Windows
PATCH 1/1 aux: Rename aux.[ch] to auxbus.[ch] for the benefit of Windows
On Windows 'aux.*' is a reserved name and cannot be used for filenames; see
https://msdn.microsoft.com/en-gb/library/windows/desktop/aa365247(v=vs.85).aspx
This prevents cloning the QEMU git repo on Windows:
C:\Java\sources\kvm> git clone https://github.com/qemu/qemu.git
Cloning into 'qemu'...
remote: Counting objects: 279563, done.
remote: Total 279563 (delta 0), reused 0 (delta 0), pack-reused 279563R Receiving objects: 100% (279563/279563), 122.45 MiB | 3.52 MiB/s, done. Resolving deltas: 100% (221942/221942), done.
Checking connectivity... done.
error: unable to create file hw/misc/aux.c (No such file or directory)
error: unable to create file include/hw/misc/aux.h (No such file or directory) Checking out files: 100% (4795/4795), done.
fatal: unable to checkout working tree
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry the checkout with 'git checkout -f HEAD'
(bug https://bugs.launchpad.net/bugs/1595240)
Rename the offending files for the benefit of Windows.
---
hw/display/dpcd.c | 2 +-
hw/misc/Makefile.objs | 2 +-
hw/misc/{aux.c => auxbus.c} | 4 ++--
include/hw/display/xlnx_dp.h | 2 +-
include/hw/misc/{aux.h => auxbus.h} | 2 +-
5 files changed, 6 insertions(+), 6 deletions(-)
rename hw/misc/{aux.c => auxbus.c} (99%)
rename include/hw/misc/{aux.h => auxbus.h} (99%)hw/display/dpcd.c +1 -1
@@ -28,7 +28,7 @@#include "qemu/osdep.h" #include "qemu/log.h" -#include "hw/misc/aux.h" +#include "hw/misc/auxbus.h" #include "hw/display/dpcd.h" #ifndef DEBUG_DPCD
hw/misc/Makefile.objs +1 -1
@@ -51,5 +51,5 @@ obj-$(CONFIG_MIPS_ITU) += mips_itu.o obj-$(CONFIG_PVPANIC) += pvpanic.o obj-$(CONFIG_EDU) += edu.o obj-$(CONFIG_HYPERV_TESTDEV) += hyperv_testdev.o -obj-$(CONFIG_AUX) += aux.o +obj-$(CONFIG_AUX) += auxbus.o obj-$(CONFIG_ASPEED_SOC) += aspeed_scu.o
hw/misc/auxbus.c renamed from hw/misc/aux.c +2 -2
@@ -1,5 +1,5 @@/* -* aux.c +* auxbus.c * * Copyright 2015 : GreenSocs Ltd * http://www.greensocs.com/ , email: [email protected]
@@ -28,7 +28,7 @@#include "qemu/osdep.h" #include "qemu/log.h" -#include "hw/misc/aux.h" +#include "hw/misc/auxbus.h" #include "hw/i2c/i2c.h" #include "monitor/monitor.h"
include/hw/display/xlnx_dp.h +1 -1
@@ -24,7 +24,7 @@#include "hw/sysbus.h" #include "ui/console.h" -#include "hw/misc/aux.h" +#include "hw/misc/auxbus.h" #include "hw/i2c/i2c.h" #include "hw/display/dpcd.h" #include "hw/i2c/i2c-ddc.h"
include/hw/misc/auxbus.h renamed from include/hw/misc/aux.h +1 -1
@@ -1,5 +1,5 @@/* -* aux.h +* auxbus.h * * Copyright (C)2014 : GreenSocs Ltd * http://www.greensocs.com/ , email: [email protected]
Signature · 1 line
1.9.1
Quoted 21 lines · Peter Maydell
On Windows 'aux.*' is a reserved name and cannot be used for filenames; see
https://msdn.microsoft.com/en-gb/library/windows/desktop/aa365247(v=vs.85).aspxThis prevents cloning the QEMU git repo on Windows:
C:\Java\sources\kvm> git clone https://github.com/qemu/qemu.git
Cloning into 'qemu'...
remote: Counting objects: 279563, done.
remote: Total 279563 (delta 0), reused 0 (delta 0), pack-reused 279563R Receiving objects: 100% (279563/279563), 122.45 MiB | 3.52 MiB/s, done. Resolving deltas: 100% (221942/221942), done.
Checking connectivity... done.
error: unable to create filehw/misc/aux.c(No such file or directory)
error: unable to create fileinclude/hw/misc/aux.h(No such file or directory) Checking out files: 100% (4795/4795), done.
fatal: unable to checkout working tree
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry the checkout with 'git checkout -f HEAD'
Quoted 7 lines
(bug https://bugs.launchpad.net/bugs/1595240)
Rename the offending files for the benefit of Windows.
Reported-by Алексей Курган <[email protected]>Signed-off-by Peter Maydell <[email protected]>---
Signature · 2 lines
Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
Quoted 21 lines · Peter Maydell
On Windows 'aux.*' is a reserved name and cannot be used for filenames; see
https://msdn.microsoft.com/en-gb/library/windows/desktop/aa365247(v=vs.85).aspxThis prevents cloning the QEMU git repo on Windows:
C:\Java\sources\kvm> git clone https://github.com/qemu/qemu.git
Cloning into 'qemu'...
remote: Counting objects: 279563, done.
remote: Total 279563 (delta 0), reused 0 (delta 0), pack-reused 279563R Receiving objects: 100% (279563/279563), 122.45 MiB | 3.52 MiB/s, done. Resolving deltas: 100% (221942/221942), done.
Checking connectivity... done.
error: unable to create filehw/misc/aux.c(No such file or directory)
error: unable to create fileinclude/hw/misc/aux.h(No such file or directory) Checking out files: 100% (4795/4795), done.
fatal: unable to checkout working tree
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry the checkout with 'git checkout -f HEAD'
Quoted 6 lines
(bug https://bugs.launchpad.net/bugs/1595240)
Rename the offending files for the benefit of Windows.
Reported-by Алексей Курган <[email protected]>Signed-off-by Peter Maydell <[email protected]>
This patch looks legit. I tested compilation on aarch64 platform and didn't see any problems. So,
-Wei
Quoted 85 lines
--- hw/display/dpcd.c | 2 +- hw/misc/Makefile.objs | 2 +- hw/misc/{aux.c => auxbus.c} | 4 ++-- include/hw/display/xlnx_dp.h | 2 +- include/hw/misc/{aux.h => auxbus.h} | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) rename hw/misc/{aux.c => auxbus.c} (99%) rename include/hw/misc/{aux.h => auxbus.h} (99%)hw/display/dpcd.c +1
-1@@ -28,7 +28,7 @@#include "qemu/osdep.h" #include "qemu/log.h" -#include "hw/misc/aux.h" +#include "hw/misc/auxbus.h" #include "hw/display/dpcd.h" #ifndef DEBUG_DPCD hw/misc/Makefile.objs +1
-1@@ -51,5 +51,5 @@ obj-$(CONFIG_MIPS_ITU) += mips_itu.o obj-$(CONFIG_PVPANIC) += pvpanic.o obj-$(CONFIG_EDU) += edu.o obj-$(CONFIG_HYPERV_TESTDEV) += hyperv_testdev.o -obj-$(CONFIG_AUX) += aux.o +obj-$(CONFIG_AUX) += auxbus.o obj-$(CONFIG_ASPEED_SOC) += aspeed_scu.ohw/misc/auxbus.c renamed from hw/misc/aux.c +2
-2@@ -1,5 +1,5 @@/* -* aux.c +* auxbus.c * * Copyright 2015 : GreenSocs Ltd * http://www.greensocs.com/ , email: [email protected] @@ -28,7 +28,7 @@#include "qemu/osdep.h" #include "qemu/log.h" -#include "hw/misc/aux.h" +#include "hw/misc/auxbus.h" #include "hw/i2c/i2c.h" #include "monitor/monitor.h" include/hw/display/xlnx_dp.h +1
-1@@ -24,7 +24,7 @@#include "hw/sysbus.h" #include "ui/console.h" -#include "hw/misc/aux.h" +#include "hw/misc/auxbus.h" #include "hw/i2c/i2c.h" #include "hw/display/dpcd.h" #include "hw/i2c/i2c-ddc.h" include/hw/misc/auxbus.h renamed from include/hw/misc/aux.h +1
-1@@ -1,5 +1,5 @@/* -* aux.h +* auxbus.h * * Copyright (C)2014 : GreenSocs Ltd * http://www.greensocs.com/ , email: [email protected]
Quoted 21 lines · Peter Maydell
On Windows 'aux.*' is a reserved name and cannot be used for filenames; see
https://msdn.microsoft.com/en-gb/library/windows/desktop/aa365247(v=vs.85).aspxThis prevents cloning the QEMU git repo on Windows:
C:\Java\sources\kvm> git clone https://github.com/qemu/qemu.git
Cloning into 'qemu'...
remote: Counting objects: 279563, done.
remote: Total 279563 (delta 0), reused 0 (delta 0), pack-reused 279563R Receiving objects: 100% (279563/279563), 122.45 MiB | 3.52 MiB/s, done. Resolving deltas: 100% (221942/221942), done.
Checking connectivity... done.
error: unable to create filehw/misc/aux.c(No such file or directory)
error: unable to create fileinclude/hw/misc/aux.h(No such file or directory) Checking out files: 100% (4795/4795), done.
fatal: unable to checkout working tree
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry the checkout with 'git checkout -f HEAD'
Quoted 6 lines
(bug https://bugs.launchpad.net/bugs/1595240)
Rename the offending files for the benefit of Windows.
Reported-by Алексей Курган <[email protected]>Signed-off-by Peter Maydell <[email protected]>
oops sorry for that :).
Thanks,
Fred
Quoted 85 lines
--- hw/display/dpcd.c | 2 +- hw/misc/Makefile.objs | 2 +- hw/misc/{aux.c => auxbus.c} | 4 ++-- include/hw/display/xlnx_dp.h | 2 +- include/hw/misc/{aux.h => auxbus.h} | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) rename hw/misc/{aux.c => auxbus.c} (99%) rename include/hw/misc/{aux.h => auxbus.h} (99%)hw/display/dpcd.c +1
-1@@ -28,7 +28,7 @@#include "qemu/osdep.h" #include "qemu/log.h" -#include "hw/misc/aux.h" +#include "hw/misc/auxbus.h" #include "hw/display/dpcd.h" #ifndef DEBUG_DPCD hw/misc/Makefile.objs +1
-1@@ -51,5 +51,5 @@ obj-$(CONFIG_MIPS_ITU) += mips_itu.o obj-$(CONFIG_PVPANIC) += pvpanic.o obj-$(CONFIG_EDU) += edu.o obj-$(CONFIG_HYPERV_TESTDEV) += hyperv_testdev.o -obj-$(CONFIG_AUX) += aux.o +obj-$(CONFIG_AUX) += auxbus.o obj-$(CONFIG_ASPEED_SOC) += aspeed_scu.ohw/misc/auxbus.c renamed from hw/misc/aux.c +2
-2@@ -1,5 +1,5 @@/* -* aux.c +* auxbus.c * * Copyright 2015 : GreenSocs Ltd * http://www.greensocs.com/ , email: [email protected] @@ -28,7 +28,7 @@#include "qemu/osdep.h" #include "qemu/log.h" -#include "hw/misc/aux.h" +#include "hw/misc/auxbus.h" #include "hw/i2c/i2c.h" #include "monitor/monitor.h" include/hw/display/xlnx_dp.h +1
-1@@ -24,7 +24,7 @@#include "hw/sysbus.h" #include "ui/console.h" -#include "hw/misc/aux.h" +#include "hw/misc/auxbus.h" #include "hw/i2c/i2c.h" #include "hw/display/dpcd.h" #include "hw/i2c/i2c-ddc.h" include/hw/misc/auxbus.h renamed from include/hw/misc/aux.h +1
-1@@ -1,5 +1,5 @@/* -* aux.h +* auxbus.h * * Copyright (C)2014 : GreenSocs Ltd * http://www.greensocs.com/ , email: [email protected]