]> granicus.if.org Git - strace/commitdiff
powerpc64: maintain own linux/powerpc64 subdirectory
authorDmitry V. Levin <ldv@altlinux.org>
Wed, 21 Jan 2015 17:04:31 +0000 (17:04 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Wed, 21 Jan 2015 17:34:37 +0000 (17:34 +0000)
Most architectures supported by strace have their own subdirectory in
linux directory, but powerpc64 didn't, causing inconveniences.

* configure.ac (arch): Define to "powerpc64" on powerpc64.
* linux/powerpc/errnoent1.h: Move to linux/powerpc64/.
* linux/powerpc/ioctlent1.h: Likewise.
* linux/powerpc/signalent1.h: Likewise.
* linux/powerpc/syscallent1.h: Likewise.
* linux/powerpc64/ioctlent.h: New file.
* linux/powerpc64/syscallent.h: Likewise.
* linux/powerpc64/userent.h: Likewise.
* Makefile.am (EXTRA_DIST): Remove linux/powerpc/ioctlent1.h,
linux/powerpc/syscallent1.h, linux/powerpc/errnoent1.h, and
linux/powerpc/signalent1.h; added linux/powerpc64/errnoent1.h,
linux/powerpc64/ioctlent.h, linux/powerpc64/ioctlent1.h,
linux/powerpc64/signalent1.h, linux/powerpc64/syscallent.h,
linux/powerpc64/syscallent1.h, and linux/powerpc64/userent.h.

Makefile.am
configure.ac
linux/powerpc/ioctlent1.h [deleted file]
linux/powerpc/syscallent1.h [deleted file]
linux/powerpc64/errnoent1.h [moved from linux/powerpc/errnoent1.h with 100% similarity]
linux/powerpc64/ioctlent.h [new file with mode: 0644]
linux/powerpc64/ioctlent1.h [new file with mode: 0644]
linux/powerpc64/signalent1.h [moved from linux/powerpc/signalent1.h with 100% similarity]
linux/powerpc64/syscallent.h [new file with mode: 0644]
linux/powerpc64/syscallent1.h [new file with mode: 0644]
linux/powerpc64/userent.h [new file with mode: 0644]

index c30313373c3649f890bad4a28c8548f99742382b..025af71c511ff07dc976b25aea61cebab451ee7d 100644 (file)
@@ -218,13 +218,16 @@ EXTRA_DIST =                              \
        linux/or1k/syscallent.h         \
        linux/or1k/userent.h            \
        linux/personality.h             \
-       linux/powerpc/errnoent1.h       \
        linux/powerpc/ioctlent.h.in     \
-       linux/powerpc/ioctlent1.h       \
-       linux/powerpc/signalent1.h      \
        linux/powerpc/syscallent.h      \
-       linux/powerpc/syscallent1.h     \
        linux/powerpc/userent.h         \
+       linux/powerpc64/errnoent1.h     \
+       linux/powerpc64/ioctlent.h      \
+       linux/powerpc64/ioctlent1.h     \
+       linux/powerpc64/signalent1.h    \
+       linux/powerpc64/syscallent.h    \
+       linux/powerpc64/syscallent1.h   \
+       linux/powerpc64/userent.h       \
        linux/ptp_clock.h               \
        linux/reboot.h                  \
        linux/s390/ioctlent.h.in        \
index 56cf16d520ed8e9dfbc231fd1da7d37bb4dfa23f..c2e64f1012bf636e97fb8e8ca3c1d41933724996 100644 (file)
@@ -52,13 +52,12 @@ alpha*)
        AC_DEFINE([ALPHA], 1, [Define for the Alpha architecture.])
        ;;
 powerpc*)
-       arch=powerpc
        AC_DEFINE([POWERPC], 1, [Define for the PowerPC architecture.])
        AC_TRY_COMPILE(
 [#ifndef __LP64__
 # error 32 bit
-#endif], [], ppc_bits=64, ppc_bits=32)
-       if test "$ppc_bits" = "64"; then
+#endif], [], arch=powerpc64, arch=powerpc)
+       if test "$arch" = "powerpc64"; then
                AC_DEFINE([POWERPC64], 1, [Define for the PowerPC64 architecture.])
        fi
        ;;
diff --git a/linux/powerpc/ioctlent1.h b/linux/powerpc/ioctlent1.h
deleted file mode 100644 (file)
index 72eeaf1..0000000
+++ /dev/null
@@ -1 +0,0 @@
-#include "ioctlent.h"
diff --git a/linux/powerpc/syscallent1.h b/linux/powerpc/syscallent1.h
deleted file mode 100644 (file)
index 49ccb8a..0000000
+++ /dev/null
@@ -1 +0,0 @@
-#include "syscallent.h"
diff --git a/linux/powerpc64/ioctlent.h b/linux/powerpc64/ioctlent.h
new file mode 100644 (file)
index 0000000..df485d3
--- /dev/null
@@ -0,0 +1 @@
+#include "../ioctlent.h"
diff --git a/linux/powerpc64/ioctlent1.h b/linux/powerpc64/ioctlent1.h
new file mode 100644 (file)
index 0000000..df485d3
--- /dev/null
@@ -0,0 +1 @@
+#include "../ioctlent.h"
diff --git a/linux/powerpc64/syscallent.h b/linux/powerpc64/syscallent.h
new file mode 100644 (file)
index 0000000..64a9f01
--- /dev/null
@@ -0,0 +1 @@
+#include "powerpc/syscallent.h"
diff --git a/linux/powerpc64/syscallent1.h b/linux/powerpc64/syscallent1.h
new file mode 100644 (file)
index 0000000..64a9f01
--- /dev/null
@@ -0,0 +1 @@
+#include "powerpc/syscallent.h"
diff --git a/linux/powerpc64/userent.h b/linux/powerpc64/userent.h
new file mode 100644 (file)
index 0000000..27c240b
--- /dev/null
@@ -0,0 +1 @@
+#include "powerpc/userent.h"