elks-enhanced
public
Read
Owner: themaster
Branch: master
Commits: 6893
Updated: 2026-04-19 00:15
Git CLI clone URL
git clone https://www.xt-emporium.com/git/elks-enhanced.git
Fullscreen desktop URL
Code
Commits
History
Branches
Bug Reports
Discussions
Compare
Settings
elks-enhanced
/
image
/
Make.defs
File editor
# Make defines and options for images ifndef TOPDIR $(error TOPDIR is not defined) endif # Dependencies folders IMG_DIR = $(TOPDIR)/image ELKS_DIR = $(TOPDIR)/elks ELKSCMD_DIR = $(TOPDIR)/elkscmd TEMPLATE_DIR = $(ELKSCMD_DIR)/rootfs_template BOOTBLOCKS_DIR = $(TOPDIR)/bootblocks FD_MINIX_BOOT = $(BOOTBLOCKS_DIR)/minix.bin FD_FAT_BOOT = $(BOOTBLOCKS_DIR)/fat.bin # Image file options # mfs options # -v verbose # mkfs initialize filesystem # genfs generate filesystem from template # addfs generate filesytem from filelist # mfs genfs options # -1 create MINIX v1 filesystem # -n14 filename size 14 # -i<size> max inodes # -s<size> image size in 1k blocks MINIX_MKFSOPTS= # mformat options # -f size image size in kilobytes (up to 2880k only) # -s secs num sectors/track # -h heads num disk heads # -t tracks num disk tracks # -c 1 cluster size 1 sector # -M 512 software sector size 512 (=physical sector size) # -d 2 2 FAT tables # -L 9 9 FAT sectors (mformat forces 3 for 360k, 5 for 720k) # -r 14 14 root directory sectors # -R 1 1 reserve sector (boot, may need to reserve 2) # -k only update offsets 11 through 61 in boot block, all else unchanged # -N 0 serial number 0 # -v label volume label (don't use with first format as uses two directory entries) # -m 0xfe media descriptor ifdef CONFIG_IMG_FD1232 FAT_MKFSOPTS = -s 8 -h 2 -t 77 -M 1024 -d 2 -L 2 -r 6 -k -N 0 -c 1 -m 0xfe else FAT_MKFSOPTS = -f $(TARGET_BLKS) -M 512 -d 2 -L 9 -r 14 -k -N 0 -c 1 endif # mcopy options # -v verbose # -p preserve attributes # -m preserve file modtime # -Q quit on error # -D o overwrite primary name if exists FAT_COPYOPTS = -pmQ -D o # mdir options # -a also list hidden files # -/ recursive output (buggy: will fail on empty, newly formatted disks! ifdef CONFIG_IMG_FD360 TARGET_FILE = $(IMG_DIR)/fd360.img TARGET_BLKS = 360 BPB = -B9,2,40 MINIX_MKFSOPTS = -1 -n14 -i128 -s$(TARGET_BLKS) endif ifdef CONFIG_IMG_FD720 TARGET_FILE = $(IMG_DIR)/fd720.img TARGET_BLKS = 720 BPB = -B9,2,80 MINIX_MKFSOPTS = -1 -n14 -i192 -s$(TARGET_BLKS) endif ifdef CONFIG_IMG_FD1200 TARGET_FILE = $(IMG_DIR)/fd1200.img TARGET_BLKS = 1200 BPB = -B15,2,80 MINIX_MKFSOPTS = -1 -n14 -i256 -s$(TARGET_BLKS) endif ifdef CONFIG_IMG_FD1232 TARGET_FILE = $(IMG_DIR)/fd1232.img TARGET_BLKS = 1232 BPB = -B8,2,77 MINIX_MKFSOPTS = -1 -n14 -i256 -s$(TARGET_BLKS) endif ifdef CONFIG_IMG_FD1440 TARGET_FILE = $(IMG_DIR)/fd1440.img TARGET_BLKS = 1440 BPB = -B18,2,80 MINIX_MKFSOPTS = -1 -n14 -i256 -s$(TARGET_BLKS) endif ifdef CONFIG_IMG_FD2880 TARGET_FILE = $(IMG_DIR)/fd2880.img TARGET_BLKS = 2880 BPB = -B36,2,80 MINIX_MKFSOPTS = -1 -n14 -i720 -s$(TARGET_BLKS) # FAT12 2880k, use cluster size 2 FAT_MKFSOPTS = -f $(TARGET_BLKS) -M 512 -d 2 -L 9 -r 14 -k -N 0 -c 2 endif ifdef CONFIG_IMG_HD TARGET_FILE = $(IMG_DIR)/hd.img TARGET_BLKS = $(CONFIG_IMG_BLOCKS) BPB = -B$(CONFIG_IMG_SECT),$(CONFIG_IMG_HEAD),$(CONFIG_IMG_CYL) ifeq ($(CONFIG_IMG_BLOCKS), 65535) MINIX_MKFSOPTS = -1 -n14 -i32736 -s$(CONFIG_IMG_BLOCKS) else MINIX_MKFSOPTS = -1 -n14 -i2048 -s$(CONFIG_IMG_BLOCKS) endif # FAT16 HD, cluster size 2, autocalc num root directory sectors FAT_MKFSOPTS = -s $(CONFIG_IMG_SECT) -h $(CONFIG_IMG_HEAD) -t $(CONFIG_IMG_CYL) \ -M 512 -d 2 -k -N 0 -c 2 endif ifdef CONFIG_ARCH_SWAN ifdef CONFIG_ROMFS_BASE TARGET_FILE = $(IMG_DIR)/rom.wsc TARGET_ROMFS_BYTES = $(shell echo $(CONFIG_ROMFS_BASE) | awk -Wnon-decimal-data '{s="0x"$$1; printf "%d\n", 0xf0000-(s*16)}') endif endif ifdef CONFIG_ARCH_SWAN TARGET_EXT = .wsc else TARGET_EXT = .img endif # override default image name if NAME specified ifdef NAME TARGET_FILE = $(IMG_DIR)/$(NAME)$(TARGET_EXT) endif
Commit message
This repository is read-only for this account.
Repository snapshot
Current branch
master
Visibility
public
Your access
Read
Remote
Configured
File activity
View file history