summaryrefslogtreecommitdiffstats
path: root/freebsd-to-rtems.py
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@oarcorp.com>2012-07-09 17:21:36 -0500
committerJoel Sherrill <joel.sherrill@oarcorp.com>2012-07-09 17:21:36 -0500
commit842c238a37ef41275a1ba5ae505e078708e82eaa (patch)
treeda1a69426c1da0084c44d10977e1fa5e51dd6dc2 /freebsd-to-rtems.py
parentlink01: Add static_hints and make nic-sysinit.h generic (diff)
downloadrtems-libbsd-842c238a37ef41275a1ba5ae505e078708e82eaa.tar.bz2
Makefile: updated to probably install architecture specific .h files
Diffstat (limited to 'freebsd-to-rtems.py')
-rwxr-xr-xfreebsd-to-rtems.py14
1 files changed, 12 insertions, 2 deletions
diff --git a/freebsd-to-rtems.py b/freebsd-to-rtems.py
index c1eef763..56bc6ad1 100755
--- a/freebsd-to-rtems.py
+++ b/freebsd-to-rtems.py
@@ -372,12 +372,22 @@ class ModuleManager:
'lib_usb:\n' \
'\t$(MAKE) $(LIB)\n' \
'\n' \
+ 'CPU_SED = sed\n' \
+ 'CPU_SED += -e \'/arm/d\'\n' \
+ 'CPU_SED += -e \'/i386/d\'\n' \
+ 'CPU_SED += -e \'/powerpc/d\'\n' \
+ 'CPU_SED += -e \'/mips/d\'\n' \
+ 'CPU_SED += -e \'/sparc/d\'\n' \
+ 'CPU_SED += -e \'/sparc64/d\'\n' \
+ '\n' \
'install: $(LIB)\n' \
'\tinstall -d $(INSTALL_BASE)/include\n' \
'\tinstall -c -m 644 $(LIB) $(INSTALL_BASE)\n' \
- '\tcd rtemsbsd; for i in `find . -name \'*.h\'` ; do \\\n' \
+ '\tcd rtemsbsd; for i in `find . -name \'*.h\' | $(CPU_SED)` ; do \\\n' \
+ '\t install -c -m 644 -D "$$i" "$(INSTALL_BASE)/include/$$i" ; done\n' \
+ '\tfor i in `find contrib freebsd -name \'*.h\' | $(CPU_SED)` ; do \\\n' \
'\t install -c -m 644 -D "$$i" "$(INSTALL_BASE)/include/$$i" ; done\n' \
- '\tfor i in `find contrib freebsd -name \'*.h\'` ; do \\\n' \
+ '\tcd freebsd/$(RTEMS_CPU)/include ; for i in `find . -name \'*.h\'` ; do \\\n' \
'\t install -c -m 644 -D "$$i" "$(INSTALL_BASE)/include/$$i" ; done\n' \
'\n' \
'clean:\n' \