diff options
author | Aidan MacDonald <amachronic@protonmail.com> | 2022-03-07 11:53:40 +0000 |
---|---|---|
committer | Aidan MacDonald <amachronic@protonmail.com> | 2022-03-11 10:58:20 -0500 |
commit | 7fa48faeb55fb43b6a4e727d0abd104b267c89a4 (patch) | |
tree | 4f3a735bc72009dc100045c8964d937be1cce7e4 /firmware/SOURCES | |
parent | 439b4e8bcad57fac53f4286033f431e7e9df6546 (diff) | |
download | rockbox-7fa48faeb55fb43b6a4e727d0abd104b267c89a4.tar.gz rockbox-7fa48faeb55fb43b6a4e727d0abd104b267c89a4.zip |
multiboot: Refactor duplicated functions to a separate file
The implementation of write_bootdata() and get_redirect_dir() was
copied verbatim in two different places, obviously a bad thing for
maintainability. This moves them to a new file multiboot.c as they
are only used for multiboot.
Change-Id: Id0279216e4dd019f8bf612a81d3835eff010e506
Diffstat (limited to 'firmware/SOURCES')
-rw-r--r-- | firmware/SOURCES | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/firmware/SOURCES b/firmware/SOURCES index 2e2f13bbe9..812174500e 100644 --- a/firmware/SOURCES +++ b/firmware/SOURCES | |||
@@ -51,6 +51,10 @@ panic.c | |||
51 | target/hosted/rolo.c | 51 | target/hosted/rolo.c |
52 | #endif | 52 | #endif |
53 | 53 | ||
54 | #if defined(HAVE_BOOTDATA) || defined(HAVE_MULTIBOOT) | ||
55 | common/multiboot.c | ||
56 | #endif | ||
57 | |||
54 | #ifdef HAVE_SDL | 58 | #ifdef HAVE_SDL |
55 | target/hosted/sdl/button-sdl.c | 59 | target/hosted/sdl/button-sdl.c |
56 | target/hosted/sdl/kernel-sdl.c | 60 | target/hosted/sdl/kernel-sdl.c |