From 9c78f17a62b3a0dd3691ee230f981e58c876a5e5 Mon Sep 17 00:00:00 2001
From: Andrei Gherzan <andrei.gherzan@huawei.com>
Date: Thu, 14 Jul 2022 16:20:37 +0200
Subject: [PATCH] ninja_base: Introduce a ninja bbclass

For now, it only handles the depndency to ninja-native and handling the
export of the MAXLOAD_NINJA variable.

Signed-off-by: Andrei Gherzan <andrei.gherzan@huawei.com>
---
 meta-oniro-staging/classes/ninja.bbclass | 8 ++++++++
 1 file changed, 8 insertions(+)
 create mode 100644 meta-oniro-staging/classes/ninja.bbclass

diff --git a/meta-oniro-staging/classes/ninja.bbclass b/meta-oniro-staging/classes/ninja.bbclass
new file mode 100644
index 00000000..6ce6e8f4
--- /dev/null
+++ b/meta-oniro-staging/classes/ninja.bbclass
@@ -0,0 +1,8 @@
+# SPDX-FileCopyrightText: Huawei Inc.
+#
+# SPDX-License-Identifier: Apache-2.0
+
+DEPENDS:prepend = "ninja-native "
+
+MAXLOAD_NINJA ??= "0"
+export MAXLOAD_NINJA
-- 
GitLab