diff --git a/target/board/ndk/BoardConfig.mk b/target/board/ndk/BoardConfig.mk new file mode 100644 index 0000000000..da8b5f3e74 --- /dev/null +++ b/target/board/ndk/BoardConfig.mk @@ -0,0 +1,21 @@ +# Copyright (C) 2022 The Android Open Source Project +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +TARGET_ARCH_SUITE := ndk +TARGET_USES_64_BIT_BINDER := true + +MALLOC_SVELTE := true + +USE_SAFESTACK := false diff --git a/target/board/ndk/README.md b/target/board/ndk/README.md new file mode 100644 index 0000000000..d8f3a1616a --- /dev/null +++ b/target/board/ndk/README.md @@ -0,0 +1,2 @@ +This device is suitable for a soong-only build that builds for all the architectures +needed for the ndk. diff --git a/target/product/AndroidProducts.mk b/target/product/AndroidProducts.mk index 7d9d90e92a..ee702e5d16 100644 --- a/target/product/AndroidProducts.mk +++ b/target/product/AndroidProducts.mk @@ -61,6 +61,7 @@ PRODUCT_MAKEFILES := \ $(LOCAL_DIR)/mainline_system_x86.mk \ $(LOCAL_DIR)/mainline_system_x86_64.mk \ $(LOCAL_DIR)/mainline_system_x86_arm.mk \ + $(LOCAL_DIR)/ndk.mk \ $(LOCAL_DIR)/sdk_arm64.mk \ $(LOCAL_DIR)/sdk.mk \ $(LOCAL_DIR)/sdk_phone_arm64.mk \ diff --git a/target/product/ndk.mk b/target/product/ndk.mk new file mode 100644 index 0000000000..1dfd0db328 --- /dev/null +++ b/target/product/ndk.mk @@ -0,0 +1,21 @@ +# Copyright (C) 2022 The Android Open Source Project +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +# This device is suitable for soong-only build that builds for all the architectures +# needed for the ndk. It is not going to work for normal `lunch && m` workflows. + +PRODUCT_NAME := ndk +PRODUCT_BRAND := Android +PRODUCT_DEVICE := ndk