sw/vec_iree: use log.h to replace springbok.h
Use the processor-neutral header log.h to replace springbok.h. This will
be useful for suppporting kelvin.
Change-Id: Ie39b016a7705cbbe535e25d582f4ffd3b09acb8e
diff --git a/model_util/util.c b/model_util/util.c
index 9920457..bd84651 100644
--- a/model_util/util.c
+++ b/model_util/util.c
@@ -18,7 +18,7 @@
#include "model_util/util.h"
-#include <springbok.h>
+#include <log.h>
#include "device/device.h"
#include "iree/modules/hal/inline/module.h"
diff --git a/native_log/CMakeLists.txt b/native_log/CMakeLists.txt
index 0c6cbb8..351c337 100644
--- a/native_log/CMakeLists.txt
+++ b/native_log/CMakeLists.txt
@@ -2,6 +2,7 @@
target_sources(native_log
PRIVATE
+ log.h
springbok.h
"$ENV{ROOTDIR}/sw/vec/springbok/springbok.cpp"
)
diff --git a/native_log/log.h b/native_log/log.h
new file mode 100644
index 0000000..9044f2f
--- /dev/null
+++ b/native_log/log.h
@@ -0,0 +1,23 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * 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.
+ */
+
+// Wrapper header for springbok.h
+#ifndef NATIVE_LOG_LOG_H_
+#define NATIVE_LOG_LOG_H_
+
+#include <springbok.h>
+
+#endif // NATIVE_LOG_LOG_H_