All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] libsepol, checkpolicy: Update Android.mk
@ 2016-09-22 19:48 Bowgo Tsai
  2016-09-22 23:17 ` Bowgo Tsai
  2016-09-26 14:24 ` Stephen Smalley
  0 siblings, 2 replies; 8+ messages in thread
From: Bowgo Tsai @ 2016-09-22 19:48 UTC (permalink / raw)
  To: selinux; +Cc: bowgotsai

From: bowgotsai <bowgotsai@google.com>

---
 checkpolicy/Android.mk | 11 ++---------
 libsepol/Android.mk    | 16 ++++++++--------
 2 files changed, 10 insertions(+), 17 deletions(-)

diff --git a/checkpolicy/Android.mk b/checkpolicy/Android.mk
index 3b7ff8a..ee2f158 100644
--- a/checkpolicy/Android.mk
+++ b/checkpolicy/Android.mk
@@ -18,13 +18,6 @@ common_includes := \
 	$(LOCAL_PATH)/../libsepol/src/ \
 
 ##
-# "-x c" forces the lex/yacc files to be compiled as c the build system
-# otherwise forces them to be c++. Need to also add an explicit -std because the
-# build system will soon default C++ to -std=c++11.
-yacc_flags := -x c -std=gnu89
-
-
-##
 # checkpolicy
 #
 include $(CLEAR_VARS)
@@ -32,7 +25,7 @@ include $(CLEAR_VARS)
 LOCAL_MODULE := checkpolicy
 LOCAL_MODULE_TAGS := optional
 LOCAL_C_INCLUDES := $(common_includes) 
-LOCAL_CFLAGS := $(yacc_flags) $(common_cflags)
+LOCAL_CFLAGS := $(common_cflags)
 LOCAL_SRC_FILES := $(common_src_files) checkpolicy.c
 LOCAL_STATIC_LIBRARIES := libsepol
 LOCAL_YACCFLAGS := -v
@@ -49,7 +42,7 @@ include $(CLEAR_VARS)
 LOCAL_MODULE := checkmodule
 LOCAL_MODULE_TAGS := optional
 LOCAL_C_INCLUDES := $(common_includes) 
-LOCAL_CFLAGS := $(yacc_flags) $(common_cflags)
+LOCAL_CFLAGS := $(common_cflags)
 LOCAL_SRC_FILES := $(common_src_files) checkmodule.c
 LOCAL_STATIC_LIBRARIES := libsepol
 LOCAL_YACCFLAGS := -v
diff --git a/libsepol/Android.mk b/libsepol/Android.mk
index 6d89f17..e9cfeef 100644
--- a/libsepol/Android.mk
+++ b/libsepol/Android.mk
@@ -81,6 +81,7 @@ common_includes := \
 # build system will soon default C++ to -std=c++11.
 yacc_flags := -x c -std=gnu89
 
+
 ##
 # libsepol.so
 #
@@ -88,12 +89,11 @@ include $(CLEAR_VARS)
 
 LOCAL_MODULE := libsepol
 LOCAL_MODULE_TAGS := optional
-LOCAL_COPY_HEADERS_TO := sepol
-LOCAL_COPY_HEADERS := include/sepol/handle.h include/sepol/policydb.h cil/include/cil/cil.h
 LOCAL_C_INCLUDES := $(common_includes) 
-LOCAL_CFLAGS := $(yacc_flags) $(common_cflags)
+LOCAL_CFLAGS := $(common_cflags)
+LOCAL_CPPFLAGS := $(yacc_flags)
 LOCAL_SRC_FILES := $(common_src_files) $(cil_src_files)
-LOCAL_MODULE_CLASS := SHARED_LIBRARIES
+LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
 
 include $(BUILD_HOST_SHARED_LIBRARY)
 
@@ -105,9 +105,10 @@ include $(CLEAR_VARS)
 LOCAL_MODULE := libsepol
 LOCAL_MODULE_TAGS := optional
 LOCAL_C_INCLUDES := $(common_includes) 
-LOCAL_CFLAGS := $(yacc_flags) $(common_cflags)
+LOCAL_CFLAGS := $(common_cflags)
+LOCAL_CPPFLAGS := $(yacc_flags)
 LOCAL_SRC_FILES := $(common_src_files) $(cil_src_files)
-LOCAL_MODULE_CLASS := STATIC_LIBRARIES
+LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
 
 include $(BUILD_HOST_STATIC_LIBRARY)
 
@@ -122,7 +123,6 @@ LOCAL_C_INCLUDES := $(common_includes)
 LOCAL_CFLAGS := $(common_cflags)
 LOCAL_SRC_FILES := utils/chkcon.c
 LOCAL_SHARED_LIBRARIES := libsepol
-LOCAL_MODULE_CLASS := EXECUTABLES
 
 include $(BUILD_HOST_EXECUTABLE)
 
@@ -133,6 +133,6 @@ LOCAL_MODULE_TAGES := optional
 LOCAL_C_INCLUDES := $(common_includes)
 LOCAL_CFLAGS := $(common_cflags)
 LOCAL_SRC_FILES := $(common_src_files)
-LOCAL_MODULE_CLASS := STATIC_LIBRARIES
+LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
 
 include $(BUILD_STATIC_LIBRARY)
-- 
2.8.0.rc3.226.g39d4020

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: [PATCH 1/2] libsepol, checkpolicy: Update Android.mk
  2016-09-22 19:48 [PATCH 1/2] libsepol, checkpolicy: Update Android.mk Bowgo Tsai
@ 2016-09-22 23:17 ` Bowgo Tsai
  2016-09-26 14:24 ` Stephen Smalley
  1 sibling, 0 replies; 8+ messages in thread
From: Bowgo Tsai @ 2016-09-22 23:17 UTC (permalink / raw)
  To: selinux; +Cc: bowgotsai, Jeffrey Vander Stoep, Daniel Cashman

[-- Attachment #1: Type: text/plain, Size: 3624 bytes --]

+Jeffrey and Daniel

On Thu, Sep 22, 2016 at 12:48 PM, Bowgo Tsai <bowgotsai@google.com> wrote:

> From: bowgotsai <bowgotsai@google.com>
>
> ---
>  checkpolicy/Android.mk | 11 ++---------
>  libsepol/Android.mk    | 16 ++++++++--------
>  2 files changed, 10 insertions(+), 17 deletions(-)
>
> diff --git a/checkpolicy/Android.mk b/checkpolicy/Android.mk
> index 3b7ff8a..ee2f158 100644
> --- a/checkpolicy/Android.mk
> +++ b/checkpolicy/Android.mk
> @@ -18,13 +18,6 @@ common_includes := \
>         $(LOCAL_PATH)/../libsepol/src/ \
>
>  ##
> -# "-x c" forces the lex/yacc files to be compiled as c the build system
> -# otherwise forces them to be c++. Need to also add an explicit -std
> because the
> -# build system will soon default C++ to -std=c++11.
> -yacc_flags := -x c -std=gnu89
> -
> -
> -##
>  # checkpolicy
>  #
>  include $(CLEAR_VARS)
> @@ -32,7 +25,7 @@ include $(CLEAR_VARS)
>  LOCAL_MODULE := checkpolicy
>  LOCAL_MODULE_TAGS := optional
>  LOCAL_C_INCLUDES := $(common_includes)
> -LOCAL_CFLAGS := $(yacc_flags) $(common_cflags)
> +LOCAL_CFLAGS := $(common_cflags)
>  LOCAL_SRC_FILES := $(common_src_files) checkpolicy.c
>  LOCAL_STATIC_LIBRARIES := libsepol
>  LOCAL_YACCFLAGS := -v
> @@ -49,7 +42,7 @@ include $(CLEAR_VARS)
>  LOCAL_MODULE := checkmodule
>  LOCAL_MODULE_TAGS := optional
>  LOCAL_C_INCLUDES := $(common_includes)
> -LOCAL_CFLAGS := $(yacc_flags) $(common_cflags)
> +LOCAL_CFLAGS := $(common_cflags)
>  LOCAL_SRC_FILES := $(common_src_files) checkmodule.c
>  LOCAL_STATIC_LIBRARIES := libsepol
>  LOCAL_YACCFLAGS := -v
> diff --git a/libsepol/Android.mk b/libsepol/Android.mk
> index 6d89f17..e9cfeef 100644
> --- a/libsepol/Android.mk
> +++ b/libsepol/Android.mk
> @@ -81,6 +81,7 @@ common_includes := \
>  # build system will soon default C++ to -std=c++11.
>  yacc_flags := -x c -std=gnu89
>
> +
>  ##
>  # libsepol.so
>  #
> @@ -88,12 +89,11 @@ include $(CLEAR_VARS)
>
>  LOCAL_MODULE := libsepol
>  LOCAL_MODULE_TAGS := optional
> -LOCAL_COPY_HEADERS_TO := sepol
> -LOCAL_COPY_HEADERS := include/sepol/handle.h include/sepol/policydb.h
> cil/include/cil/cil.h
>  LOCAL_C_INCLUDES := $(common_includes)
> -LOCAL_CFLAGS := $(yacc_flags) $(common_cflags)
> +LOCAL_CFLAGS := $(common_cflags)
> +LOCAL_CPPFLAGS := $(yacc_flags)
>  LOCAL_SRC_FILES := $(common_src_files) $(cil_src_files)
> -LOCAL_MODULE_CLASS := SHARED_LIBRARIES
> +LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
>
>  include $(BUILD_HOST_SHARED_LIBRARY)
>
> @@ -105,9 +105,10 @@ include $(CLEAR_VARS)
>  LOCAL_MODULE := libsepol
>  LOCAL_MODULE_TAGS := optional
>  LOCAL_C_INCLUDES := $(common_includes)
> -LOCAL_CFLAGS := $(yacc_flags) $(common_cflags)
> +LOCAL_CFLAGS := $(common_cflags)
> +LOCAL_CPPFLAGS := $(yacc_flags)
>  LOCAL_SRC_FILES := $(common_src_files) $(cil_src_files)
> -LOCAL_MODULE_CLASS := STATIC_LIBRARIES
> +LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
>
>  include $(BUILD_HOST_STATIC_LIBRARY)
>
> @@ -122,7 +123,6 @@ LOCAL_C_INCLUDES := $(common_includes)
>  LOCAL_CFLAGS := $(common_cflags)
>  LOCAL_SRC_FILES := utils/chkcon.c
>  LOCAL_SHARED_LIBRARIES := libsepol
> -LOCAL_MODULE_CLASS := EXECUTABLES
>
>  include $(BUILD_HOST_EXECUTABLE)
>
> @@ -133,6 +133,6 @@ LOCAL_MODULE_TAGES := optional
>  LOCAL_C_INCLUDES := $(common_includes)
>  LOCAL_CFLAGS := $(common_cflags)
>  LOCAL_SRC_FILES := $(common_src_files)
> -LOCAL_MODULE_CLASS := STATIC_LIBRARIES
> +LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
>
>  include $(BUILD_STATIC_LIBRARY)
> --
> 2.8.0.rc3.226.g39d4020
>
>


-- 

Bowgo Tsai |  Engineer |  bowgotsai@google.com |  +886 (2) 8729-6364
<%2B886287296364>

[-- Attachment #2: Type: text/html, Size: 5717 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH 1/2] libsepol, checkpolicy: Update Android.mk
  2016-09-22 19:48 [PATCH 1/2] libsepol, checkpolicy: Update Android.mk Bowgo Tsai
  2016-09-22 23:17 ` Bowgo Tsai
@ 2016-09-26 14:24 ` Stephen Smalley
  2016-09-29  2:17   ` Bowgo Tsai
  1 sibling, 1 reply; 8+ messages in thread
From: Stephen Smalley @ 2016-09-26 14:24 UTC (permalink / raw)
  To: Bowgo Tsai, selinux

On 09/22/2016 03:48 PM, Bowgo Tsai wrote:
> From: bowgotsai <bowgotsai@google.com>

It looks to me as if the final versions of these patches changed before
they were committed to AOSP, so I'm going to ignore these and assume
you'll submit new ones.  Also, if updating these, shouldn't you also
update the top-level selinux/Android.mk file as well?

I was wondering however if it makes sense to keep these files upstream
or if we should just drop them and let them only exist in the Android tree.

> 
> ---
>  checkpolicy/Android.mk | 11 ++---------
>  libsepol/Android.mk    | 16 ++++++++--------
>  2 files changed, 10 insertions(+), 17 deletions(-)
> 
> diff --git a/checkpolicy/Android.mk b/checkpolicy/Android.mk
> index 3b7ff8a..ee2f158 100644
> --- a/checkpolicy/Android.mk
> +++ b/checkpolicy/Android.mk
> @@ -18,13 +18,6 @@ common_includes := \
>  	$(LOCAL_PATH)/../libsepol/src/ \
>  
>  ##
> -# "-x c" forces the lex/yacc files to be compiled as c the build system
> -# otherwise forces them to be c++. Need to also add an explicit -std because the
> -# build system will soon default C++ to -std=c++11.
> -yacc_flags := -x c -std=gnu89
> -
> -
> -##
>  # checkpolicy
>  #
>  include $(CLEAR_VARS)
> @@ -32,7 +25,7 @@ include $(CLEAR_VARS)
>  LOCAL_MODULE := checkpolicy
>  LOCAL_MODULE_TAGS := optional
>  LOCAL_C_INCLUDES := $(common_includes) 
> -LOCAL_CFLAGS := $(yacc_flags) $(common_cflags)
> +LOCAL_CFLAGS := $(common_cflags)
>  LOCAL_SRC_FILES := $(common_src_files) checkpolicy.c
>  LOCAL_STATIC_LIBRARIES := libsepol
>  LOCAL_YACCFLAGS := -v
> @@ -49,7 +42,7 @@ include $(CLEAR_VARS)
>  LOCAL_MODULE := checkmodule
>  LOCAL_MODULE_TAGS := optional
>  LOCAL_C_INCLUDES := $(common_includes) 
> -LOCAL_CFLAGS := $(yacc_flags) $(common_cflags)
> +LOCAL_CFLAGS := $(common_cflags)
>  LOCAL_SRC_FILES := $(common_src_files) checkmodule.c
>  LOCAL_STATIC_LIBRARIES := libsepol
>  LOCAL_YACCFLAGS := -v
> diff --git a/libsepol/Android.mk b/libsepol/Android.mk
> index 6d89f17..e9cfeef 100644
> --- a/libsepol/Android.mk
> +++ b/libsepol/Android.mk
> @@ -81,6 +81,7 @@ common_includes := \
>  # build system will soon default C++ to -std=c++11.
>  yacc_flags := -x c -std=gnu89
>  
> +
>  ##
>  # libsepol.so
>  #
> @@ -88,12 +89,11 @@ include $(CLEAR_VARS)
>  
>  LOCAL_MODULE := libsepol
>  LOCAL_MODULE_TAGS := optional
> -LOCAL_COPY_HEADERS_TO := sepol
> -LOCAL_COPY_HEADERS := include/sepol/handle.h include/sepol/policydb.h cil/include/cil/cil.h
>  LOCAL_C_INCLUDES := $(common_includes) 
> -LOCAL_CFLAGS := $(yacc_flags) $(common_cflags)
> +LOCAL_CFLAGS := $(common_cflags)
> +LOCAL_CPPFLAGS := $(yacc_flags)
>  LOCAL_SRC_FILES := $(common_src_files) $(cil_src_files)
> -LOCAL_MODULE_CLASS := SHARED_LIBRARIES
> +LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
>  
>  include $(BUILD_HOST_SHARED_LIBRARY)
>  
> @@ -105,9 +105,10 @@ include $(CLEAR_VARS)
>  LOCAL_MODULE := libsepol
>  LOCAL_MODULE_TAGS := optional
>  LOCAL_C_INCLUDES := $(common_includes) 
> -LOCAL_CFLAGS := $(yacc_flags) $(common_cflags)
> +LOCAL_CFLAGS := $(common_cflags)
> +LOCAL_CPPFLAGS := $(yacc_flags)
>  LOCAL_SRC_FILES := $(common_src_files) $(cil_src_files)
> -LOCAL_MODULE_CLASS := STATIC_LIBRARIES
> +LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
>  
>  include $(BUILD_HOST_STATIC_LIBRARY)
>  
> @@ -122,7 +123,6 @@ LOCAL_C_INCLUDES := $(common_includes)
>  LOCAL_CFLAGS := $(common_cflags)
>  LOCAL_SRC_FILES := utils/chkcon.c
>  LOCAL_SHARED_LIBRARIES := libsepol
> -LOCAL_MODULE_CLASS := EXECUTABLES
>  
>  include $(BUILD_HOST_EXECUTABLE)
>  
> @@ -133,6 +133,6 @@ LOCAL_MODULE_TAGES := optional
>  LOCAL_C_INCLUDES := $(common_includes)
>  LOCAL_CFLAGS := $(common_cflags)
>  LOCAL_SRC_FILES := $(common_src_files)
> -LOCAL_MODULE_CLASS := STATIC_LIBRARIES
> +LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
>  
>  include $(BUILD_STATIC_LIBRARY)
> 

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH 1/2] libsepol, checkpolicy: Update Android.mk
  2016-09-26 14:24 ` Stephen Smalley
@ 2016-09-29  2:17   ` Bowgo Tsai
  2016-09-29 13:28     ` Stephen Smalley
  0 siblings, 1 reply; 8+ messages in thread
From: Bowgo Tsai @ 2016-09-29  2:17 UTC (permalink / raw)
  To: Stephen Smalley
  Cc: selinux, Nick Kralevich, Daniel Cashman, Jeffrey Vander Stoep

[-- Attachment #1: Type: text/plain, Size: 4741 bytes --]

OK, please ignore these patches, will update new ones.
I'll update the top-level Android.mk if we still want to keep Android.mk
upstream.

However, I was thinking the same thing: it seems better to only keep
Android.mk files in Android tree.
For other *.c/*.h files, keep these files up-to-date in the upstream as
well.

If no one objects to this, I'll prepare two patches.

   1. Update secilc/secilc.c
   2. Delete all Android.mk files in the upstream

Let me know your thoughts.
Thanks,

On Mon, Sep 26, 2016 at 10:24 PM, Stephen Smalley <sds@tycho.nsa.gov> wrote:

> On 09/22/2016 03:48 PM, Bowgo Tsai wrote:
> > From: bowgotsai <bowgotsai@google.com>
>
> It looks to me as if the final versions of these patches changed before
> they were committed to AOSP, so I'm going to ignore these and assume
> you'll submit new ones.  Also, if updating these, shouldn't you also
> update the top-level selinux/Android.mk file as well?
>
> I was wondering however if it makes sense to keep these files upstream
> or if we should just drop them and let them only exist in the Android tree.
>
> >
> > ---
> >  checkpolicy/Android.mk | 11 ++---------
> >  libsepol/Android.mk    | 16 ++++++++--------
> >  2 files changed, 10 insertions(+), 17 deletions(-)
> >
> > diff --git a/checkpolicy/Android.mk b/checkpolicy/Android.mk
> > index 3b7ff8a..ee2f158 100644
> > --- a/checkpolicy/Android.mk
> > +++ b/checkpolicy/Android.mk
> > @@ -18,13 +18,6 @@ common_includes := \
> >       $(LOCAL_PATH)/../libsepol/src/ \
> >
> >  ##
> > -# "-x c" forces the lex/yacc files to be compiled as c the build system
> > -# otherwise forces them to be c++. Need to also add an explicit -std
> because the
> > -# build system will soon default C++ to -std=c++11.
> > -yacc_flags := -x c -std=gnu89
> > -
> > -
> > -##
> >  # checkpolicy
> >  #
> >  include $(CLEAR_VARS)
> > @@ -32,7 +25,7 @@ include $(CLEAR_VARS)
> >  LOCAL_MODULE := checkpolicy
> >  LOCAL_MODULE_TAGS := optional
> >  LOCAL_C_INCLUDES := $(common_includes)
> > -LOCAL_CFLAGS := $(yacc_flags) $(common_cflags)
> > +LOCAL_CFLAGS := $(common_cflags)
> >  LOCAL_SRC_FILES := $(common_src_files) checkpolicy.c
> >  LOCAL_STATIC_LIBRARIES := libsepol
> >  LOCAL_YACCFLAGS := -v
> > @@ -49,7 +42,7 @@ include $(CLEAR_VARS)
> >  LOCAL_MODULE := checkmodule
> >  LOCAL_MODULE_TAGS := optional
> >  LOCAL_C_INCLUDES := $(common_includes)
> > -LOCAL_CFLAGS := $(yacc_flags) $(common_cflags)
> > +LOCAL_CFLAGS := $(common_cflags)
> >  LOCAL_SRC_FILES := $(common_src_files) checkmodule.c
> >  LOCAL_STATIC_LIBRARIES := libsepol
> >  LOCAL_YACCFLAGS := -v
> > diff --git a/libsepol/Android.mk b/libsepol/Android.mk
> > index 6d89f17..e9cfeef 100644
> > --- a/libsepol/Android.mk
> > +++ b/libsepol/Android.mk
> > @@ -81,6 +81,7 @@ common_includes := \
> >  # build system will soon default C++ to -std=c++11.
> >  yacc_flags := -x c -std=gnu89
> >
> > +
> >  ##
> >  # libsepol.so
> >  #
> > @@ -88,12 +89,11 @@ include $(CLEAR_VARS)
> >
> >  LOCAL_MODULE := libsepol
> >  LOCAL_MODULE_TAGS := optional
> > -LOCAL_COPY_HEADERS_TO := sepol
> > -LOCAL_COPY_HEADERS := include/sepol/handle.h include/sepol/policydb.h
> cil/include/cil/cil.h
> >  LOCAL_C_INCLUDES := $(common_includes)
> > -LOCAL_CFLAGS := $(yacc_flags) $(common_cflags)
> > +LOCAL_CFLAGS := $(common_cflags)
> > +LOCAL_CPPFLAGS := $(yacc_flags)
> >  LOCAL_SRC_FILES := $(common_src_files) $(cil_src_files)
> > -LOCAL_MODULE_CLASS := SHARED_LIBRARIES
> > +LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
> >
> >  include $(BUILD_HOST_SHARED_LIBRARY)
> >
> > @@ -105,9 +105,10 @@ include $(CLEAR_VARS)
> >  LOCAL_MODULE := libsepol
> >  LOCAL_MODULE_TAGS := optional
> >  LOCAL_C_INCLUDES := $(common_includes)
> > -LOCAL_CFLAGS := $(yacc_flags) $(common_cflags)
> > +LOCAL_CFLAGS := $(common_cflags)
> > +LOCAL_CPPFLAGS := $(yacc_flags)
> >  LOCAL_SRC_FILES := $(common_src_files) $(cil_src_files)
> > -LOCAL_MODULE_CLASS := STATIC_LIBRARIES
> > +LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
> >
> >  include $(BUILD_HOST_STATIC_LIBRARY)
> >
> > @@ -122,7 +123,6 @@ LOCAL_C_INCLUDES := $(common_includes)
> >  LOCAL_CFLAGS := $(common_cflags)
> >  LOCAL_SRC_FILES := utils/chkcon.c
> >  LOCAL_SHARED_LIBRARIES := libsepol
> > -LOCAL_MODULE_CLASS := EXECUTABLES
> >
> >  include $(BUILD_HOST_EXECUTABLE)
> >
> > @@ -133,6 +133,6 @@ LOCAL_MODULE_TAGES := optional
> >  LOCAL_C_INCLUDES := $(common_includes)
> >  LOCAL_CFLAGS := $(common_cflags)
> >  LOCAL_SRC_FILES := $(common_src_files)
> > -LOCAL_MODULE_CLASS := STATIC_LIBRARIES
> > +LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
> >
> >  include $(BUILD_STATIC_LIBRARY)
> >
>
>


-- 

Bowgo Tsai |  Engineer |  bowgotsai@google.com |  +886 (2) 8729-6364
<%2B886287296364>

[-- Attachment #2: Type: text/html, Size: 7277 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH 1/2] libsepol, checkpolicy: Update Android.mk
  2016-09-29  2:17   ` Bowgo Tsai
@ 2016-09-29 13:28     ` Stephen Smalley
  2016-09-29 14:06       ` William Roberts
  0 siblings, 1 reply; 8+ messages in thread
From: Stephen Smalley @ 2016-09-29 13:28 UTC (permalink / raw)
  To: Bowgo Tsai; +Cc: selinux, Nick Kralevich, Daniel Cashman, Jeffrey Vander Stoep

On 09/28/2016 10:17 PM, Bowgo Tsai wrote:
> OK, please ignore these patches, will update new ones. 
> I'll update the top-level Android.mk if we still want to keep Android.mk
> upstream.
> 
> However, I was thinking the same thing: it seems better to only keep
> Android.mk files in Android tree.
> For other *.c/*.h files, keep these files up-to-date in the upstream as
> well.
> 
> If no one objects to this, I'll prepare two patches.
> 
>  1. Update secilc/secilc.c
>  2. Delete all Android.mk files in the upstream

SGTM

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH 1/2] libsepol, checkpolicy: Update Android.mk
  2016-09-29 13:28     ` Stephen Smalley
@ 2016-09-29 14:06       ` William Roberts
  2016-10-03 17:27         ` Daniel Cashman
  0 siblings, 1 reply; 8+ messages in thread
From: William Roberts @ 2016-09-29 14:06 UTC (permalink / raw)
  To: Stephen Smalley; +Cc: Bowgo Tsai, Daniel Cashman, selinux

On Thu, Sep 29, 2016 at 9:28 AM, Stephen Smalley <sds@tycho.nsa.gov> wrote:
> On 09/28/2016 10:17 PM, Bowgo Tsai wrote:
>> OK, please ignore these patches, will update new ones.
>> I'll update the top-level Android.mk if we still want to keep Android.mk
>> upstream.
>>
>> However, I was thinking the same thing: it seems better to only keep
>> Android.mk files in Android tree.
>> For other *.c/*.h files, keep these files up-to-date in the upstream as
>> well.
>>
>> If no one objects to this, I'll prepare two patches.
>>
>>  1. Update secilc/secilc.c
>>  2. Delete all Android.mk files in the upstream
>
> SGTM

SGTM

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH 1/2] libsepol, checkpolicy: Update Android.mk
  2016-09-29 14:06       ` William Roberts
@ 2016-10-03 17:27         ` Daniel Cashman
  2016-10-04  1:49           ` Bowgo Tsai
  0 siblings, 1 reply; 8+ messages in thread
From: Daniel Cashman @ 2016-10-03 17:27 UTC (permalink / raw)
  To: William Roberts, Stephen Smalley; +Cc: Bowgo Tsai, selinux

[-- Attachment #1: Type: text/plain, Size: 755 bytes --]

+1 SGTM.

On Thu, Sep 29, 2016 at 7:06 AM William Roberts <bill.c.roberts@gmail.com>
wrote:

> On Thu, Sep 29, 2016 at 9:28 AM, Stephen Smalley <sds@tycho.nsa.gov>
> wrote:
> > On 09/28/2016 10:17 PM, Bowgo Tsai wrote:
> >> OK, please ignore these patches, will update new ones.
> >> I'll update the top-level Android.mk if we still want to keep Android.mk
> >> upstream.
> >>
> >> However, I was thinking the same thing: it seems better to only keep
> >> Android.mk files in Android tree.
> >> For other *.c/*.h files, keep these files up-to-date in the upstream as
> >> well.
> >>
> >> If no one objects to this, I'll prepare two patches.
> >>
> >>  1. Update secilc/secilc.c
> >>  2. Delete all Android.mk files in the upstream
> >
> > SGTM
>
> SGTM
>

[-- Attachment #2: Type: text/html, Size: 1577 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH 1/2] libsepol, checkpolicy: Update Android.mk
  2016-10-03 17:27         ` Daniel Cashman
@ 2016-10-04  1:49           ` Bowgo Tsai
  0 siblings, 0 replies; 8+ messages in thread
From: Bowgo Tsai @ 2016-10-04  1:49 UTC (permalink / raw)
  To: Daniel Cashman
  Cc: William Roberts, Stephen Smalley, selinux, Nick Kralevich,
	Jeffrey Vander Stoep

[-- Attachment #1: Type: text/plain, Size: 1030 bytes --]

Thanks for the confirmation, both changes were merged into upstream.

On Tue, Oct 4, 2016 at 1:27 AM, Daniel Cashman <dcashman@google.com> wrote:

> +1 SGTM.
>
> On Thu, Sep 29, 2016 at 7:06 AM William Roberts <bill.c.roberts@gmail.com>
> wrote:
>
>> On Thu, Sep 29, 2016 at 9:28 AM, Stephen Smalley <sds@tycho.nsa.gov>
>> wrote:
>> > On 09/28/2016 10:17 PM, Bowgo Tsai wrote:
>> >> OK, please ignore these patches, will update new ones.
>> >> I'll update the top-level Android.mk if we still want to keep
>> Android.mk
>> >> upstream.
>> >>
>> >> However, I was thinking the same thing: it seems better to only keep
>> >> Android.mk files in Android tree.
>> >> For other *.c/*.h files, keep these files up-to-date in the upstream as
>> >> well.
>> >>
>> >> If no one objects to this, I'll prepare two patches.
>> >>
>> >>  1. Update secilc/secilc.c
>> >>  2. Delete all Android.mk files in the upstream
>> >
>> > SGTM
>>
>> SGTM
>>
>


-- 

Bowgo Tsai |  Engineer |  bowgotsai@google.com |  +886 (2) 8729-6364
<%2B886287296364>

[-- Attachment #2: Type: text/html, Size: 3935 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2016-10-04  1:49 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-22 19:48 [PATCH 1/2] libsepol, checkpolicy: Update Android.mk Bowgo Tsai
2016-09-22 23:17 ` Bowgo Tsai
2016-09-26 14:24 ` Stephen Smalley
2016-09-29  2:17   ` Bowgo Tsai
2016-09-29 13:28     ` Stephen Smalley
2016-09-29 14:06       ` William Roberts
2016-10-03 17:27         ` Daniel Cashman
2016-10-04  1:49           ` Bowgo Tsai

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.