[RESEND PATCH 1/2] binder: Add binder skeletal code.

Jouni Malinen j at w1.fi
Fri Mar 18 12:22:26 PDT 2016


On Tue, Feb 16, 2016 at 04:39:28PM -0800, Roshan Pius wrote:
> Since we use libbinder, the binder interface codebase needs to be
> written in c++ and can only be compiled on Android platform
> for now.

That's somewhat unfortunate from the view point of automated testing
setup that I'm currently using. I guess I should finally add Android
builds to the automated compilation check, but even with that, actual
functionality of the binder interface would not be covered at all with
the hwsim test cases.

> The aidl files define binder RPC interfaces. The android build system
> generates the corresponding c++ interface classes which needs to be
> implemented by the server process.

Hmm.. Should this happen automatically when running mm or the command
you mentioned below?

> TEST: `mmm -j32 external/wpa_supplicant_8/wpa_supplicant` with
> CONFIG_CTRL_IFACE_BINDER=y.

This is failing for me due to missing header files like this:

In file included from
external/hostap/wpa_supplicant/binder/binder_manager.h:16:0,
                 from external/hostap/wpa_supplicant/binder/binder.cpp:14:
external/hostap/wpa_supplicant/binder/supplicant.h:13:47: fatal error: fi/w1/wpa_supplicant/BnSupplicant.h: No such file or directory
 #include "fi/w1/wpa_supplicant/BnSupplicant.h"


This is on top of Android M release from AOSP. external/hostap is the
hostap.git android-m branch rebased on top of the current master branch
and these two patches.

-- 
Jouni Malinen                                            PGP id EFC895FA



More information about the Hostap mailing list