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:
parent
ebce349180
commit
bb916cf30d
@ -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)
|
||||
|
BIN
pkg/libfixmath/libfixmath-unittests-printf-format.patch
Normal file
BIN
pkg/libfixmath/libfixmath-unittests-printf-format.patch
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user