summaryrefslogtreecommitdiffhomepage
path: root/src/coreboot-partition-map.c
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-07-31 08:57:14 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2025-07-31 08:57:14 +0100
commit1891d7343a9ac25ab157c4495581a0fcbd7fbcbf (patch)
treec6da72fdf5db30c67c28e968883f869ee57600d0 /src/coreboot-partition-map.c
parent18d33e155d2f56e59eb49dadbb30ab2f7ac3e852 (diff)
feat! refactor NeBoot for NeKernel.org v1.0.0
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'src/coreboot-partition-map.c')
-rw-r--r--src/coreboot-partition-map.c30
1 files changed, 0 insertions, 30 deletions
diff --git a/src/coreboot-partition-map.c b/src/coreboot-partition-map.c
deleted file mode 100644
index f5d937b..0000000
--- a/src/coreboot-partition-map.c
+++ /dev/null
@@ -1,30 +0,0 @@
-/* -------------------------------------------
-
- Copyright (C) 2024, Amlal EL Mahrouss, all rights reserved.
-
-------------------------------------------- */
-
-#include <lib/partition-map.h>
-#include <lib/string.h>
-
-// include this for documentation.
-
-#define CB_FILESYSTEM_COUNT 4
-#define CB_FILESYSTEM_LIST \
- { "NeFS", "HeFS", "FAT32", "ext4" }
-
-/// @brief check if filesystem is supported by CoreBoot.
-/// @param fs the filesystem magic, as provided by EPM.
-boolean cb_filesystem_exists(caddr_t fs, size_t len) {
- if (fs == nil || *fs == 0) return no;
-
- char* fs_list[] = CB_FILESYSTEM_LIST;
-
- for (size_t fs_index = 0; fs_index < CB_FILESYSTEM_COUNT; fs_index++) {
- if (strncmp(fs_list[fs_index], fs, strlen(fs_list[fs_index])) == 0) {
- return yes;
- }
- }
-
- return no;
-}