From 0929aab8327758b5569add9d0918bccc2c02a5f9 Mon Sep 17 00:00:00 2001 From: John Moon Date: Fri, 9 Sep 2022 11:54:16 -0700 Subject: [PATCH] build: Add custom bazel.WORKSPACE file The Bazel WORKSPACE file in build/kernel/kleaf is not sufficient for our usecase. We must add a nested workspace for host DTC build. Add the custom workspace file here so we can link it to the top-level via repo manifest. Change-Id: Ic260a335bae0bc43ba8b0ec482588c68e62c2a80 Signed-off-by: John Moon --- bazel.WORKSPACE | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 bazel.WORKSPACE diff --git a/bazel.WORKSPACE b/bazel.WORKSPACE new file mode 100644 index 000000000000..b6a0dc298b0d --- /dev/null +++ b/bazel.WORKSPACE @@ -0,0 +1,31 @@ +# Copyright (C) 2021 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. +# +# Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved. + +### build/kernel/kleaf/bazel.WORKSPACE contents ### +load("//build/kernel/kleaf:workspace.bzl", "define_kleaf_workspace") + +define_kleaf_workspace() + +# Optional epilog for analysis testing. +load("//build/kernel/kleaf:workspace_epilog.bzl", "define_kleaf_workspace_epilog") +define_kleaf_workspace_epilog() + +### Qualcomm customizations ### +new_local_repository( + name = "dtc", + path = "external/dtc", + build_file = "msm-kernel/BUILD.dtc", +)