20 Commits

Author SHA1 Message Date
Chris Johns
f1fcdba863 waf: Refector the builder to work with Python3 and UTF-8 source files.
Python 3 requires better UTF-8 handling of files and FreeBSD has UTF-8
characters in some files.

Refactor builder.py to clean up the code and remove the need to have
a temporary file. Update other scripts to use the new code.
2016-04-27 12:08:23 +10:00
Chris Johns
5d37f0ea66 waf: Check for no FreeBSD options being supplied. 2016-04-26 14:31:38 +10:00
Chris Johns
e1e10cddee waf: Add the ability to set FreeBSD options on the configure command line.
Add --freebsd-options to add specific FreeBSD compile time options to
the build. This is a developer tool.
2016-04-23 17:37:27 +10:00
Chris Johns
051ef305f7 waf: Move the generated content to libbsd_waf.py. 2016-04-20 18:22:39 +10:00
Chris Johns
97c5024a79 Add RTEMS version support, update all python to 2 and 3.
Add support to force the RTEMS version. This remove the need for using
the --rtems-version command line option if the automatic detection fails.

Update all python code to support python 2 and 3.

Update rtems_waf to the latest version to support the RTEMS version,
check environment variables and to display the CC version.

Sort all tests. I think the unsorted list is dependent on the version
of python and so would result in repo noise as if it regenerted.
2016-04-18 10:53:20 +10:00
Sebastian Huber
cf9836e322 Add .exe extension to test programs 2015-11-18 09:24:19 +01:00
Sebastian Huber
a76483d8dd Use latest rtems_waf 2015-11-13 10:58:45 +01:00
Sebastian Huber
d6c6017c25 Python 3 compatibility 2015-11-12 13:10:03 +01:00
Sebastian Huber
28bfb6bd39 waf: Add x86 include paths for i386 arch 2015-09-29 10:43:33 +02:00
Sebastian Huber
af3944c754 waf: Do not add '.' to standard include path 2015-09-29 10:16:10 +02:00
Sebastian Huber
88205a560b waf_generator.py: Move arch header includes
Make sure that architecture specific header files are found first.
2015-07-31 11:55:47 +02:00
Gene Smith
45a60417e8 modified: waf_generator.py Fix incorrect encoding of NET_CFG_GATEWAY_IP and change _IP_IP ending to _IP. Remove _IP_IP ending from NET_TAP_INTERFACE.
modified:   wscript
Re-generated from "./freebsd-to-rtems -m" based on
waf_generator.py
2015-06-26 14:07:03 +10:00
Chris Johns
98d7c3c015 Check if RTEMS is built with POSIX. 2015-06-17 09:55:53 +10:00
Chris Johns
8440506ee8 Add tcpdump and libpcap.
- Update the file builder generator to handle generator specific cflags and
  includes. The tcpdump and libpcap have localised headers and need specific
  headers paths to see them. There are also module specific flags and these
  need to be passed to the lex and yacc generators.

- Add the tcpdump support.
2015-06-15 17:42:23 +10:00
Chris Johns
1383c80c5a Add conditional support for RTEMS PCI to the waf build.
Check for the "rtems/pci.h" header and provide conditional build support
with waf to build for BSPs that do not have PCI support. The Makefile build
always defines HAVE_RTEMS_PCI_H which is the same state with this change.

The PCI calls still exist however they do nothing and return a constant.
Any PCI based driver that makes these calls on a BSP that does not have
PCI support will not work which is understandable. Either change the
driver or add PCI support the BSP.
2015-06-01 10:36:58 +10:00
Chris Johns
84288f4279 waf: Check for dlfcn.h header is availavble. 2015-05-22 12:18:31 +10:00
Chris Johns
0768880d75 waf: Add install support.
Install to the --prefix path passed to configure.
2015-05-21 17:01:34 +10:00
Chris Johns
49637856b7 waf: Add network configuration support.
Add support to parse the config.inc default file for a network configuration
or allow the user to specify their own via a configure option.

Update to build the kvm-symbol's generated file.
2015-05-21 09:30:28 +10:00
Chris Johns
e9aa953789 waf: Add warnings and auto-regen options. 2015-05-20 22:00:11 +10:00
Chris Johns
5ba6949578 Add support to build using waf. 2015-05-20 17:45:16 +10:00