Skip to content

Commit

Permalink
Merge remote-tracking branch 'aosp/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
kito-cheng committed May 20, 2014
2 parents 8d54e34 + fb1f38e commit 5b27fcb
Show file tree
Hide file tree
Showing 13 changed files with 48 additions and 9 deletions.
3 changes: 2 additions & 1 deletion core/clang/config.mk
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ CLANG_CONFIG_UNKNOWN_CFLAGS := \
-funswitch-loops \
-Wno-psabi \
-Wno-unused-but-set-variable \
-Wno-unused-but-set-parameter
-Wno-unused-but-set-parameter \
-fno-canonical-system-headers

# Clang flags for all host rules
CLANG_CONFIG_HOST_EXTRA_ASFLAGS :=
Expand Down
3 changes: 2 additions & 1 deletion core/combo/HOST_linux-x86.mk
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ HOST_GLOBAL_LDFLAGS += -static
endif # BUILD_HOST_static

HOST_GLOBAL_CFLAGS += -fPIC \
-include $(call select-android-config-h,linux-x86)
-no-canonical-prefixes \
-include $(call select-android-config-h,linux-x86)

# Disable new longjmp in glibc 2.11 and later. See bug 2967937.
HOST_GLOBAL_CFLAGS += -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0
Expand Down
2 changes: 1 addition & 1 deletion core/combo/HOST_windows-x86.mk
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ endif # Linux

# Workaround differences in inttypes.h between host and target.
# See bug 12708004.
HOST_GLOBAL_CFLAGS += -D__STDC_FORMAT_MACROS -D__STDC_CONSTANT_MACROS
HOST_GLOBAL_CFLAGS += -D__STDC_FORMAT_MACROS -D__STDC_CONSTANT_MACROS -D__USE_MINGW_ANSI_STDIO

HOST_CC := $(TOOLS_PREFIX)gcc$(TOOLS_EXE_SUFFIX)
HOST_CXX := $(TOOLS_PREFIX)g++$(TOOLS_EXE_SUFFIX)
Expand Down
2 changes: 2 additions & 0 deletions core/combo/TARGET_linux-arm.mk
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ $(combo_2nd_arch_prefix)TARGET_GLOBAL_CFLAGS += \
-Werror=format-security \
-D_FORTIFY_SOURCE=2 \
-fno-short-enums \
-no-canonical-prefixes \
-fno-canonical-system-headers \
$(arch_variant_cflags)

# The "-Wunused-but-set-variable" option often breaks projects that enable
Expand Down
2 changes: 2 additions & 0 deletions core/combo/TARGET_linux-arm64.mk
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ TARGET_GLOBAL_CFLAGS += \
-Werror=format-security \
-D_FORTIFY_SOURCE=2 \
-fno-short-enums \
-no-canonical-prefixes \
-fno-canonical-system-headers \
$(arch_variant_cflags) \

# Help catch common 32/64-bit errors.
Expand Down
3 changes: 2 additions & 1 deletion core/combo/TARGET_linux-mips.mk
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,9 @@ $(combo_2nd_arch_prefix)TARGET_GLOBAL_CFLAGS += \
-Wa,--noexecstack \
-Werror=format-security \
-D_FORTIFY_SOURCE=2 \
-no-canonical-prefixes \
-fno-canonical-system-headers \
$(arch_variant_cflags)

# This warning causes dalvik not to build with gcc 4.6+ and -Werror.
# We cannot turn it off blindly since the option is not available
# in gcc-4.4.x.
Expand Down
2 changes: 2 additions & 0 deletions core/combo/TARGET_linux-mips64.mk
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ TARGET_GLOBAL_CFLAGS += \
-Wa,--noexecstack \
-Werror=format-security \
-D_FORTIFY_SOURCE=2 \
-no-canonical-prefixes \
-fno-canonical-system-headers \
$(arch_variant_cflags) \

# This warning causes dalvik not to build with gcc 4.6+ and -Werror.
Expand Down
5 changes: 4 additions & 1 deletion core/combo/TARGET_linux-x86.mk
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,10 @@ $(combo_2nd_arch_prefix)TARGET_GLOBAL_CFLAGS += \
-funswitch-loops \
-funwind-tables \
-fstack-protector \
-m32
-m32 \
-msse2 \
-no-canonical-prefixes \
-fno-canonical-system-headers \

$(combo_2nd_arch_prefix)TARGET_GLOBAL_CFLAGS += $(arch_variant_cflags)

Expand Down
4 changes: 3 additions & 1 deletion core/combo/TARGET_linux-x86_64.mk
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,9 @@ TARGET_GLOBAL_CFLAGS += \
-funswitch-loops \
-funwind-tables \
-fstack-protector \
-m64
-m64 \
-no-canonical-prefixes \
-fno-canonical-system-headers

# Help catch common 32/64-bit errors.
TARGET_GLOBAL_CFLAGS += \
Expand Down
4 changes: 2 additions & 2 deletions core/dex_preopt_libart.mk
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ DEX2OATD_DEPENDENCY += $(LIBARTD_COMPILER)

PRELOADED_CLASSES := frameworks/base/preloaded-classes

LIBART_BOOT_IMAGE := /$(DEXPREOPT_BOOT_JAR_DIR)/boot.art
LIBART_BOOT_IMAGE := /$(DEXPREOPT_BOOT_JAR_DIR)/boot-$(DEX2OAT_TARGET_ARCH).art

DEFAULT_DEX_PREOPT_BUILT_IMAGE := $(DEXPREOPT_BOOT_JAR_DIR_FULL_PATH)/boot.art
DEFAULT_DEX_PREOPT_BUILT_IMAGE := $(DEXPREOPT_BOOT_JAR_DIR_FULL_PATH)/boot-$(DEX2OAT_TARGET_ARCH).art

DEFAULT_DEX_PREOPT_INSTALLED_IMAGE :=
ifneq ($(PRODUCT_DEX_PREOPT_IMAGE_IN_DATA),true)
Expand Down
25 changes: 25 additions & 0 deletions core/executable_prefer_symlink.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# include this makefile to create the LOCAL_MODULE symlink to the primary version binary.
# but this requires the primary version name specified via LOCAL_MODULE_STEM_32 or LOCAL_MODULE_STEM_64,
# and different with the LOCAL_MODULE value
#
# Note: now only limited to the binaries that will be installed under system/bin directory

my_symlink := $(addprefix $(TARGET_OUT)/bin/, $(LOCAL_MODULE))
# create link to the one used for prefer version
ifneq ($(TARGET_PREFER_32_BIT_APPS),true)
$(my_symlink): PRIVATE_SRC_BINARY_NAME := $(LOCAL_MODULE_STEM_64)
else
$(my_symlink): PRIVATE_SRC_BINARY_NAME := $(LOCAL_MODULE_STEM_32)
endif

$(my_symlink): $(LOCAL_INSTALLED_MODULE) $(LOCAL_MODULE_MAKEFILE)
@echo "Symlink: $@ -> $(PRIVATE_SRC_BINARY_NAME)"
@mkdir -p $(dir $@)
@rm -rf $@
$(hide) ln -sf $(PRIVATE_SRC_BINARY_NAME) $@

# We need this so that the installed files could be picked up based on the
# local module name
ALL_MODULES.$(LOCAL_MODULE).INSTALLED += $(my_symlink)

my_symlink :=
1 change: 1 addition & 0 deletions envsetup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ function setpaths()
export ANDROID_QTOOLS=$T/development/emulator/qtools
export ANDROID_DEV_SCRIPTS=$T/development/scripts:$T/prebuilts/devtools/tools
export ANDROID_BUILD_PATHS=$(get_build_var ANDROID_BUILD_PATHS):$ANDROID_QTOOLS:$ANDROID_TOOLCHAIN:$ANDROID_KERNEL_TOOLCHAIN_PATH$ANDROID_DEV_SCRIPTS:

#export PATH=$ANDROID_BUILD_PATHS$PATH

unset ANDROID_JAVA_TOOLCHAIN
Expand Down
1 change: 0 additions & 1 deletion target/board/generic_arm64/BoardConfig.mk
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,3 @@ BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4
BOARD_FLASH_BLOCK_SIZE := 512
TARGET_USERIMAGES_SPARSE_EXT_DISABLED := true

BUILD_EMULATOR := false

0 comments on commit 5b27fcb

Please sign in to comment.