diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-05-21 03:45:08 +0200 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2025-05-21 03:45:08 +0200 |
| commit | c85a99c2afdd4c9dfa9d8f0f212e4625b6adade7 (patch) | |
| tree | 3bb631cf7c49b74fbf6d02104059e0540f26ba4b /tooling | |
| parent | bec0e457ad346783be7f84be71bb0eddc881847c (diff) | |
feat(kernel): source code improvements.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'tooling')
| -rwxr-xr-x | tooling/mk_img.py | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/tooling/mk_img.py b/tooling/mk_img.py index 8227a217..539353fc 100755 --- a/tooling/mk_img.py +++ b/tooling/mk_img.py @@ -24,14 +24,6 @@ def copy_to_fat(image_path, source_dir): command = ["mcopy", "-spm", "-i", image_path] + files_to_copy + ["::"] subprocess.run(command, check=True) - - print(f"Info: Successfully copied contents of '{source_dir}' into '{image_path}'") - except FileNotFoundError: - print("Error: mcopy is not installed. Please install mtools.") - sys.exit(1) - except subprocess.CalledProcessError as e: - print(f"Error: mcopy failed with error code {e.returncode}.") - sys.exit(1) except Exception as e: print(f"Error: failed: {e}") sys.exit(1) @@ -46,4 +38,4 @@ if __name__ == "__main__": copy_to_fat(image_path, source_dir) - print("NeKernel image created successfully.") + print("Info: image created successfully.") |
