1355 Commits

Author SHA1 Message Date
Laurent Vivier
04fd26029d container: add a target to create export
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
2025-08-14 19:34:54 +02:00
Laurent Vivier
9cb0bca4d3 etch: cast off_t to uintmax_t in printf
We use %j modifier in printf to display off_t, but it's defined to use with intmax_t or intmax_t

Signed-off-by: Laurent Vivier <laurent@vivier.eu>
2025-08-14 18:14:12 +02:00
Laurent Vivier
fa7c05f6a6 second: don't use extern inline...
it doesn't work with sid, and it's broken by definition...

Signed-off-by: Laurent Vivier <laurent@vivier.eu>
2025-08-14 18:11:36 +02:00
Laurent Vivier
3f860a13a1 etch: disable unsupported -Wno-XXXX flags
-Wno-address-of-packed-member -Wno-stringop-truncation and -Wno-array-bounds
are needed to be able to build with sid, but are not supported by etch

Signed-off-by: Laurent Vivier <laurent@vivier.eu>
2025-08-14 18:09:52 +02:00
Laurent Vivier
504be25cf3 etch: Don't use -U flag with ar
This flags is not supported

Signed-off-by: Laurent Vivier <laurent@vivier.eu>
2025-08-14 18:06:43 +02:00
Laurent Vivier
38c133c1b2 libext2: avoid use of __divdi3()/__moddi3()
Changing the type of offset to off_t has implictely pulled
the use of __divdi3()//__moddi3() that we are not importing from
the system. Cast offset to int to avoid this

Signed-off-by: Laurent Vivier <laurent@vivier.eu>
2025-08-14 14:31:42 +02:00
Laurent Vivier
591dd8ba5a container: add etch container
To build inside an m68k/sid env:

  ./run-sid ./configure
  ./run-sid make all

m68k/etch env:

  ./run-etch ./configure
  ./run-etch make all

Signed-off-by: Laurent Vivier <laurent@vivier.eu>
2025-08-14 11:50:28 +02:00
Laurent Vivier
63e2e5f593 container: use ./run rather than EMILE_CONTAINER=1 make
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
2025-08-13 19:42:06 +02:00
Laurent Vivier
8ad9b19081 Add -Wno-old-style-definition
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
2025-08-13 17:43:13 +02:00
Laurent Vivier
7c6c6b8f3e off_t: fix mixed type and printf format
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
2025-08-13 17:37:14 +02:00
Laurent Vivier
d9b3b67692 add -Wno-array-bounds
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
2025-08-13 17:36:08 +02:00
Laurent Vivier
1dcbdde9a9 add -Wno-address-of-packed-member
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
2025-08-13 17:34:59 +02:00
Laurent Vivier
a8b76dd8c5 kernel.mk: fix cross-compiling
Define KARCH to m68k by default when there is no kernel to know

Signed-off-by: Laurent Vivier <laurent@vivier.eu>
2025-08-13 17:33:03 +02:00
Laurent Vivier
e7f622561c Create an m68k container to build EMILE
Usage:

  $ make emile-m68k-container
  $ EMILE_CONTAINER=1 make all

Signed-off-by: Laurent Vivier <laurent@vivier.eu>
2025-08-13 17:29:05 +02:00
Laurent Vivier
6d70cfedd6 libunix: add memmove() 2025-06-25 19:12:06 +00:00
Laurent Vivier
56e4e09c35 add missing break statements
The switch statements in emile_scsi_get_dev() and emile-set-output
were missing break statements:

* MAJOR_IDE1 in emile_scsi_get_dev() fell through to default,
  resulting in an "Unknown device major number" error.
* ARG_STOPBITS in emile-set-output fell through, so subsequent code
  executed within the switch block.

Signed-off-by: Laurent Vivier <laurent@vivier.eu>
2025-06-25 19:12:06 +00:00
Laurent Vivier
c5d80cb382 emile: fix backup file renaming
When restoring a bootblock, the path .backup should be renamed to
.backup.old. The sprintf() call mistakenly used the newly allocated
buffer rather than the original path. We now pass backup_path to
sprintf() before renaming the backup file.

Signed-off-by: Laurent Vivier <laurent@vivier.eu>
2025-06-25 19:11:35 +00:00
Laurent Vivier
5044fbd700 Merge pull request #5 from CheetahPixie/patch-1
Remove the sp register from UNPRESERVED_REGS
2025-01-13 09:34:04 +01:00
CheetahPixie
37c3d55720 Remove the sp register from UNPRESERVED_REGS
Including the stack pointer register in a clobber list has long since been deprecated by GCC (~9.0 and ~8.4), and according to my research, it appears the compiler ignores its presence in a clobber list regardless.

Whether this is the correct thing to do here I do not know, but from my research, it seems to be, and it does silence the associated deprecation warning that, due to -Werror, causes builds to fail.

See here: https://stackoverflow.com/questions/64928418/arm-cortex-m0-set-msp-c17-compiler-warning
2025-01-12 10:20:41 +00:00
Laurent Vivier
224ab6eabc Merge pull request #4 from CheetahPixie/patch-1
Remove erroneous scripts/tools.sh reference from main makefile
2025-01-09 18:14:03 +01:00
CheetahPixie
a84961eb1d Remove erroneous scripts/tools.sh reference from main makefile
This file has not existed in the repository since 2017, which means attempting to make dist will fail with an error for it being missing. This removes the reference to that file, allowing make dist to succeed.

Considering configure has to be run first (and is what tools.sh became back in 2017), I do not expect the complete omission of this reference to cause any issues.
2025-01-09 16:20:42 +00:00
Laurent Vivier
5b5ffd7947 Merge pull request #3 from CheetahPixie/patch-1
Maintenance change: Update i_dir_acl to i_size_high
2025-01-09 17:10:35 +01:00
CheetahPixie
f1690f87ce Maintenance change: Update i_dir_acl to i_size_high
The former macro has long since been removed from upstream, causing build failures on modern tools. This was fixed in ext4magic all the way back in 2018, for example.

See here: https://sourceforge.net/p/ext4magic/tickets/10/
2025-01-09 14:58:24 +00:00
Laurent Vivier
0ee6aca5ae Rules: add -U to ar
by default ar uses deterministic mode and all .o are
added even if they are not new. Disable this by adding -U
to ARFLAGS.

Signed-off-by: Laurent Vivier <laurent@vivier.eu>
2017-03-16 20:12:52 +00:00
Laurent Vivier
314268632b tools: remove targets clean and dist
We don't need them here as they are imported from Rules.mk

Signed-off-by: Laurent Vivier <laurent@vivier.eu>
2017-03-16 20:05:04 +00:00
Laurent Vivier
bd8f87287c add configure script
Remove tools.sh, and let ./configure to generate tools.mk

Signed-off-by: Laurent Vivier <laurent@vivier.eu>
2017-03-16 20:47:29 +01:00
Laurent Vivier
08be6d9c46 Merge pull request #2 from glaubitz/master
Fix multiple build issues
2017-03-16 12:07:18 +01:00
John Paul Adrian Glaubitz
59e2e59943 scripts: don't bail out when no m68k cross-compiler can be found 2017-03-15 23:06:33 +01:00
John Paul Adrian Glaubitz
710d7ed2f6 remove trailing spaces from multiple Makefiles 2017-03-15 22:56:49 +01:00
John Paul Adrian Glaubitz
4722d3550b tools: fix source path for installation of tools binaries 2017-03-15 22:52:40 +01:00
John Paul Adrian Glaubitz
162572aaf9 debian: bump debhelper minimum version and compat to 9 2017-03-15 21:39:27 +01:00
John Paul Adrian Glaubitz
11bd9223ba tools: remove Makefile from SOURCES variable 2017-03-15 21:34:14 +01:00
Michael Karcher
6e23d9a665 libunix: add -ffreestanding to CFLAGS to fix nonnull-compare warning 2017-03-15 21:29:26 +01:00
John Paul Adrian Glaubitz
b6f49c0e6b second: make console_putchar() inline in console.c only 2017-03-15 21:23:48 +01:00
Laurent Vivier
6b81ba9f49 tools: include Rules.mk in Makefile
To import CONFIG_E2FSLIBS
2017-02-27 16:41:01 +01:00
Laurent Vivier
1f37e6e9b5 docs: move emile.conf to config/
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
2015-11-11 20:13:36 +01:00
Laurent Vivier
53062ff0bf emile-mktable: force the size of the disk in the table
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
2015-11-11 18:42:51 +01:00
Laurent Vivier
3be63e7001 tools: add tools to set conf path into emiledriver
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
2015-11-10 22:23:53 +01:00
Laurent Vivier
02fdcb3eb4 libmap: add map_update_checksum.c
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
2015-11-10 22:23:53 +01:00
Laurent Vivier
9b3737d9cc libmap: add map_write_driver.c
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
2015-11-10 22:23:53 +01:00
Laurent Vivier
7b836064ad libmap: add map_read_driver.c
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
2015-11-10 22:23:53 +01:00
Laurent Vivier
081c7f96ee libmap: move emile_checksum() to map_checksum()
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
2015-11-08 22:47:21 +01:00
Laurent Vivier
91a43e63c2 Correctly use linux/ext2_fs.h or ext2fs/ext2_fs.h
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
2015-11-08 22:42:27 +01:00
Laurent Vivier
e1d35789fb tools: create partitions table with EMILE driver
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
2015-11-03 02:00:53 +01:00
Laurent Vivier
7a22506a89 emile-map-set: allow to write flags
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
2015-09-20 23:41:58 +02:00
Laurent Vivier
4de7597e14 Allows to share EMILE directory between several archs
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
2015-09-20 23:06:08 +02:00
Laurent Vivier
0b05a2eff7 docs: correctly use docbook2man
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
2015-09-20 22:36:02 +02:00
Laurent Vivier
204bf1d146 emile: add more checks when reading emile.conf 2014-06-01 23:55:12 +02:00
Laurent Vivier
cbe8d0c417 emile-map-set: manage only one driver
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
2014-06-01 02:47:21 +02:00
Laurent Vivier
098deb6716 emile-map-set: use O_RDWR to put driver
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
2014-05-31 12:20:02 +02:00