diff options
author | tcsullivan <tullivan99@gmail.com> | 2018-12-02 14:18:36 -0500 |
---|---|---|
committer | tcsullivan <tullivan99@gmail.com> | 2018-12-02 14:18:36 -0500 |
commit | 02d0bbc0a1d04afa97e560c2707129909aaf2625 (patch) | |
tree | 64a8d25fc3151dbf5a91e5c434a197b61b6b0b17 /src/pdclib | |
parent | 42eff60714a32942b307d6b139aa400ca0df296a (diff) |
working toochain build script
Diffstat (limited to 'src/pdclib')
-rw-r--r-- | src/pdclib/Makefile | 2 | ||||
-rw-r--r-- | src/pdclib/include/pdclib/_PDCLIB_int.h | 2 | ||||
-rw-r--r-- | src/pdclib/platform/stmos/include/pdclib/_PDCLIB_config.h | 2 | ||||
-rw-r--r-- | src/pdclib/platform/stmos/include/sys/types.h | 2 | ||||
-rw-r--r-- | src/pdclib/platform/stmos/include/unistd.h | 6 |
5 files changed, 11 insertions, 3 deletions
diff --git a/src/pdclib/Makefile b/src/pdclib/Makefile index 5d75638..0669c1a 100644 --- a/src/pdclib/Makefile +++ b/src/pdclib/Makefile @@ -27,7 +27,7 @@ ALLFILES := $(SRCFILES) $(HDRFILES) $(AUXFILES) CC = arm-stmos-gcc -mcpu=cortex-m4 -mthumb -fsigned-char WARNINGS := -Wall -Wextra -pedantic -Wno-unused-parameter -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wnested-externs -Winline -Wno-long-long -Wuninitialized -Wstrict-prototypes -Wdeclaration-after-statement -CFLAGS := -fPIC -Os -ffreestanding -std=c99 -I./testing -I./platform/stmos/include $(WARNINGS) $(USERFLAGS) +CFLAGS := -fPIC -Os -g -ffreestanding -std=c99 -I./testing -I./platform/stmos/include $(WARNINGS) $(USERFLAGS) .PHONY: all clean srcdist tests testdrivers regtests regtestdrivers todos fixmes help diff --git a/src/pdclib/include/pdclib/_PDCLIB_int.h b/src/pdclib/include/pdclib/_PDCLIB_int.h index 6eaded1..20f3a1f 100644 --- a/src/pdclib/include/pdclib/_PDCLIB_int.h +++ b/src/pdclib/include/pdclib/_PDCLIB_int.h @@ -12,7 +12,7 @@ /* would be considered a bug / missing feature: notify the author(s). */ /* -------------------------------------------------------------------------- */ -#include <stdbool.h> +//#include <stdbool.h> #include "pdclib/_PDCLIB_config.h" #include "pdclib/_PDCLIB_aux.h" diff --git a/src/pdclib/platform/stmos/include/pdclib/_PDCLIB_config.h b/src/pdclib/platform/stmos/include/pdclib/_PDCLIB_config.h index 9731f86..3733edb 100644 --- a/src/pdclib/platform/stmos/include/pdclib/_PDCLIB_config.h +++ b/src/pdclib/platform/stmos/include/pdclib/_PDCLIB_config.h @@ -143,7 +143,7 @@ struct _PDCLIB_lldiv_t #define _PDCLIB_SIG_ATOMIC INT /* Result type of the 'sizeof' operator (must be unsigned) */ -#define _PDCLIB_size unsigned long +#define _PDCLIB_size unsigned int #define _PDCLIB_SIZE ULONG /* Large enough an integer to hold all character codes of the largest supported diff --git a/src/pdclib/platform/stmos/include/sys/types.h b/src/pdclib/platform/stmos/include/sys/types.h new file mode 100644 index 0000000..53c0fe2 --- /dev/null +++ b/src/pdclib/platform/stmos/include/sys/types.h @@ -0,0 +1,2 @@ +// placeholder for gcc compilation + diff --git a/src/pdclib/platform/stmos/include/unistd.h b/src/pdclib/platform/stmos/include/unistd.h new file mode 100644 index 0000000..4003d7c --- /dev/null +++ b/src/pdclib/platform/stmos/include/unistd.h @@ -0,0 +1,6 @@ +#ifndef UNISTD_H_ +#define UNISTD_H_ + +typedef int pid_t; + +#endif // UNISTD_H_ |