From a5d49140eadd82d3ce0e34fc372317a967ecea71 Mon Sep 17 00:00:00 2001 From: Ville Juven Date: Thu, 21 Apr 2022 10:16:06 +0300 Subject: [PATCH] MPFS: Add dummy rofms image To allow building with ROMFS enabled --- boards/risc-v/mpfs/icicle/include/.gitignore | 2 ++ .../mpfs/icicle/include/boot_romfsimg.h | 35 +++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 boards/risc-v/mpfs/icicle/include/.gitignore create mode 100644 boards/risc-v/mpfs/icicle/include/boot_romfsimg.h diff --git a/boards/risc-v/mpfs/icicle/include/.gitignore b/boards/risc-v/mpfs/icicle/include/.gitignore new file mode 100644 index 0000000000..be6c25e344 --- /dev/null +++ b/boards/risc-v/mpfs/icicle/include/.gitignore @@ -0,0 +1,2 @@ +/*_romfsimg.h + diff --git a/boards/risc-v/mpfs/icicle/include/boot_romfsimg.h b/boards/risc-v/mpfs/icicle/include/boot_romfsimg.h new file mode 100644 index 0000000000..863dd2440d --- /dev/null +++ b/boards/risc-v/mpfs/icicle/include/boot_romfsimg.h @@ -0,0 +1,35 @@ +/**************************************************************************** + * boards/risc-v/mpfs/icicle/include/boot_romfsimg.h + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. The + * ASF licenses this file to you 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. + * + ****************************************************************************/ + +#ifndef __BOARDS_RISC_V_MPFS_ICICLE_INCLUDE_BOOT_ROMFSIMG_H +#define __BOARDS_RISC_V_MPFS_ICICLE_INCLUDE_BOOT_ROMFSIMG_H + +/**************************************************************************** + * Included Files + ****************************************************************************/ + +#include +const unsigned char aligned_data(4) romfs_img[] = +{ + 0x00 +}; +unsigned int romfs_img_len = 1; + +#endif /* __BOARDS_RISC_V_MPFS_ICICLE_INCLUDE_BOOT_ROMFSIMG_H */