Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2d068b59 authored by Martin Stjernholm's avatar Martin Stjernholm
Browse files

Add a product for building linux_bionic in --soong-only mode.

Modelled after the mainline_sdk product.

Test: build/soong/soong_ui.bash --make-mode --soong-only \
        SOONG_ALLOW_MISSING_DEPENDENCIES=true \
        TARGET_PRODUCT=linux_bionic com.android.art.host
Bug: 31559095
Bug: 229123823
Change-Id: I6051d21cc4bae561e987561ddad5f1ec5435c4ca
parent 7bc6d0e7
Loading
Loading
Loading
Loading
+24 −0
Original line number Original line Diff line number Diff line
# Copyright (C) 2020 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 only intended to be used for host Bionic build targets, so
# (device) target architectures are irrelevant. However, the build system isn't
# prepared to handle no target architectures at all, so pick something
# arbitrarily.
TARGET_ARCH_SUITE := ndk

HOST_CROSS_OS := linux_bionic
HOST_CROSS_ARCH := x86_64
HOST_CROSS_2ND_ARCH :=
+6 −0
Original line number Original line Diff line number Diff line
This "device" is suitable for Soong-only builds to create Bionic binaries for
Linux hosts:

```
build/soong/soong_ui.bash --make-mode --soong-only TARGET_PRODUCT=linux_bionic ...
```
+1 −0
Original line number Original line Diff line number Diff line
@@ -74,6 +74,7 @@ PRODUCT_MAKEFILES := \
endif
endif


PRODUCT_MAKEFILES += \
PRODUCT_MAKEFILES += \
    $(LOCAL_DIR)/linux_bionic.mk \
    $(LOCAL_DIR)/mainline_sdk.mk \
    $(LOCAL_DIR)/mainline_sdk.mk \
    $(LOCAL_DIR)/module_arm.mk \
    $(LOCAL_DIR)/module_arm.mk \
    $(LOCAL_DIR)/module_arm64.mk \
    $(LOCAL_DIR)/module_arm64.mk \
+18 −0
Original line number Original line Diff line number Diff line
# 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.
#

PRODUCT_NAME := linux_bionic
PRODUCT_BRAND := Android
PRODUCT_DEVICE := linux_bionic