1
0
mirror of https://github.com/antonblanchard/microwatt.git synced 2026-03-10 12:28:45 +00:00

tests: Adjust header inclusions and Makefile.test

This fixes the decrementer, illegal and sc tests to compile
successfully with cross-compilers that don't provide unistd.h
or string.h.  Instead of those headers we include stddef.h.

This also fixes tests/Makefile.test to do what one expects
when CROSS_COMPILE is defined in the environment.

Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
This commit is contained in:
Paul Mackerras
2020-04-03 13:46:36 +11:00
parent 04ec2115ad
commit c13c73f1ae
4 changed files with 4 additions and 7 deletions

View File

@@ -1,7 +1,7 @@
ARCH = $(shell uname -m)
ifneq ("$(ARCH)", "ppc64")
ifneq ("$(ARCH)", "ppc64le")
CROSS_COMPILE = powerpc64le-linux-
CROSS_COMPILE ?= powerpc64le-linux-
endif
endif

View File

@@ -1,5 +1,4 @@
#include <unistd.h>
#include <string.h>
#include <stddef.h>
#include <stdint.h>
#include <stdbool.h>

View File

@@ -1,5 +1,4 @@
#include <unistd.h>
#include <string.h>
#include <stddef.h>
#include <stdint.h>
#include <stdbool.h>

View File

@@ -1,5 +1,4 @@
#include <unistd.h>
#include <string.h>
#include <stddef.h>
#include <stdint.h>
#include <stdbool.h>