1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

pkg/libfixmath: printf format fixes for unittests

This commit is contained in:
Joakim Gebart 2015-07-06 14:03:56 +02:00
parent ebce349180
commit bb916cf30d
2 changed files with 3 additions and 2 deletions

View File

@ -28,8 +28,8 @@ $(BINDIR)$(PKG_NAME)-src/Makefile: $(CHECKOUT_FOLDER)/svn_info.xml
$(AD)cp $(CHECKOUT_FOLDER)/libfixmath/*.[ch] $(@D)
$(AD)rm -f $(BINDIR)$(PKG_NAME)-src/fix16.h
cd $(@D) && sed -i -e 's/1 <</(uint32_t) 1 <</g' uint32.c
cd $(@D) && sed -i -e 's/is\([a-z]*\)(\*buf)/is\1((unsigned char) *buf)/g' fix16_str.c
$(AD)cd $(@D) && sed -i -e 's/1 <</(uint32_t) 1 <</g' uint32.c
$(AD)cd $(@D) && sed -i -e 's/is\([a-z]*\)(\*buf)/is\1((unsigned char) *buf)/g' fix16_str.c
$(BINDIR)$(PKG_NAME)-unittests-src/Makefile:
@rm -rf $(@D)
@ -43,6 +43,7 @@ $(BINDIR)$(PKG_NAME)-unittests-src/Makefile:
-e 's/fprintf(std[^,]*,/printf(/' \
-i $${C_FILE}; \
done
$(AD)cd $(@D) && patch -p1 --ignore-whitespace < $(CURDIR)/libfixmath-unittests-printf-format.patch
$(BINDIR)$(PKG_NAME)-headers/fix16.h: $(CHECKOUT_FOLDER)/svn_info.xml
@rm -rf $(@D)