Skip to content

Commit

Permalink
utilities: nexutil now compiles on the raspberry pi again. i therefor…
Browse files Browse the repository at this point in the history
…e merged some parts of the pull request #34.
  • Loading branch information
matthiasseemoo committed Feb 9, 2017
1 parent 222a74b commit 81a347b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
10 changes: 10 additions & 0 deletions utilities/libnexio/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
GIT_VERSION := $(shell git describe --abbrev=4 --dirty --always --tags)

all: libs/armeabi/libnexio.a

ifneq ($(shell uname -m),armv7l)
libs/armeabi/libnexio.a: Android.mk
$(NDK_ROOT)/ndk-build NDK_APPLICATION_MK=`pwd`/Application.mk NDK_APP_OUT=. TARGET_PLATFORM=android-21
else
libs/armeabi/libnexio.a: libnexio.c
gcc -c libnexio.c -o libnexio.o -DBUILD_ON_RPI -DVERSION=\"$GIT_VERSION\" -I../../patches/include
ar rcs libnexio.a libnexio.o
endif

clean:
rm -Rf libs
Expand Down
4 changes: 2 additions & 2 deletions utilities/nexutil/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ libs/armeabi/nexutil: Android.mk nexutil.c ../libargp/local/armeabi/libargp.a ..
$(NDK_ROOT)/ndk-build NDK_APPLICATION_MK=`pwd`/Application.mk NDK_APP_OUT=. TARGET_PLATFORM=android-21 GIT_VERSION=$(GIT_VERSION)
else
libs/armeabi/nexutil: nexutil.c FORCE
gcc -o nexutil nexutil.c -DBUILD_ON_RPI -DVERSION=\"$GIT_VERSION\" -I../../patches/include
gcc -static -o nexutil nexutil.c -DBUILD_ON_RPI -DVERSION=\"$GIT_VERSION\" -I. -I../../patches/include -I../libnexio -L../libnexio/ -lnexio -I../libargp
endif

../libargp/local/armeabi/libargp.a: FORCE
Expand All @@ -33,4 +33,4 @@ clean:
rm -Rf local

FORCE:


4 changes: 2 additions & 2 deletions utilities/nexutil/wlcnt.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
* *
**************************************************************************/

typedef uint32_t uint32;
typedef uint16_t uint16;
typedef unsigned int uint32;
typedef unsigned short uint16;

// source of wl_cnt_t: http://svn.dd-wrt.com/browser/src/linux/universal/linux-3.10/brcm/arm/include/wlioctl.h?rev=23022

Expand Down

0 comments on commit 81a347b

Please sign in to comment.