From: Marcel Holtmann <marcel@holtmann.org>
To: Ian Coolidge <icoolidge@google.com>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: [PATCH] android/build: Create a target for hciconfig.
Date: Sun, 1 Feb 2015 23:49:48 -0800 [thread overview]
Message-ID: <D620962F-0B39-4DF2-B9B1-CC5918193C9F@holtmann.org> (raw)
In-Reply-To: <1422861564-30169-1-git-send-email-icoolidge@google.com>
Hi Ian,
> ---
> android/Android.mk | 33 +++++++++++++++++++++++++++++++++
> 1 file changed, 33 insertions(+)
>
> diff --git a/android/Android.mk b/android/Android.mk
> index c1a9eff..bf7e510 100644
> --- a/android/Android.mk
> +++ b/android/Android.mk
> @@ -539,6 +539,39 @@ LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/bluez/configure.ac
> include $(BUILD_EXECUTABLE)
>
> #
> +# hciconfig
> +#
> +
> +include $(CLEAR_VARS)
> +
> +LOCAL_SRC_FILES:= \
> + bluez/lib/bluetooth.c \
> + bluez/lib/hci.c \
> + bluez/tools/csr.c \
> + bluez/tools/csr_h4.c \
are you sure about this csr_h4.c file? I do not think that it is needed.
> + bluez/tools/hciconfig.c
Also could you re-order these similar to hcitool.
> +LOCAL_C_INCLUDES := \
> + $(LOCAL_PATH)/bluez \
> + $(LOCAL_PATH)/bluez/lib \
> + $(LOCAL_PATH)/bluez/tools \
> + $(LOCAL_PATH)/bluez/src \
> + $(LOCAL_PATH)/bluez/src/shared \
The entry for hcitool gets away with just $(LOCAL_PATH)/bluez and I assume that is enough here as well.
> +
> +LOCAL_CFLAGS := $(BLUEZ_COMMON_CFLAGS)
> +
> +LOCAL_STATIC_LIBRARIES := \
> + bluetooth-headers \
> +
> +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
> +LOCAL_MODULE_TAGS := debug
> +LOCAL_MODULE := hciconfig
> +
> +LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/bluez/configure.ac
> +
> +include $(BUILD_EXECUTABLE)
> +
Everything else looks just fine. On a side note, we never included the command so far since mostly everything can be done with btmgmt. Especially when it comes to qualification. Then again, I have no objections to include hciconfig since that command is more widely know as it seems.
Regards
Marcel
next prev parent reply other threads:[~2015-02-02 7:49 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-02 7:19 [PATCH] android/build: Create a target for hciconfig Ian Coolidge
2015-02-02 7:49 ` Marcel Holtmann [this message]
2015-02-02 8:25 ` [PATCH v2] " Ian Coolidge
2015-02-02 8:25 ` [PATCH] " Ian Coolidge
2015-02-03 9:53 ` Szymon Janc
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=D620962F-0B39-4DF2-B9B1-CC5918193C9F@holtmann.org \
--to=marcel@holtmann.org \
--cc=icoolidge@google.com \
--cc=linux-bluetooth@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox