about summary refs log tree commit diff stats
path: root/ranger/gui
Commit message (Expand)AuthorAgeFilesLines
...
* pager: fixed G keyhut2010-01-011-1/+4
* ui: redraw when marking/tags changehut2010-01-011-0/+3
* browser: corrected color taghut2010-01-011-1/+1
* browsercolumn: fixed redrawinghut2010-01-011-3/+7
* pager: fixed scrolling rangehut2010-01-011-2/+2
* keys: improved/fixed bindings for pagerhut2010-01-011-2/+5
* taskview: fixed redrawinghut2010-
#!/bin/sh
# Build one or more .subx files into an ELF binary, and package it up into a
# bootable ISO image with a Linux kernel.
#
# Must be run on Linux, and from the top-level mu/ directory.
#
# Dependencies:
#   apt install build-essential flex bison wget libelf-dev libssl-dev xorriso
#
# Based on http://minimal.linux-bg.org (GPLv3)

set -e

if [ $# -eq 0 ]
then
  echo "Usage: `basename $0` file.subx ..."
  exit 1
fi

echo "=== building SubX binary"
./translate_subx $*
mv a.elf init

echo "=== constructing initramfs out of SubX binary"
rm -rf tmp_linux/isoimage
mkdir -p tmp_linux/isoimage/boot
echo init | cpio -R root:root -H newc -o | xz -9 --check=none > tmp_linux/isoimage/boot/rootfs.xz

if [ ! -d kernel.linux ]
then
  echo "=== cloning linux kernel"
  git clone https://github.com/akkartik/kernel kernel.linux
fi

echo "=== building linux kernel"
( cd kernel.linux
  make bzImage -j $(grep ^processor /proc/cpuinfo | wc -l)
)
cp *.linux/arch/x86/boot/bzImage tmp_linux/isoimage/boot/kernel.xz

echo "=== downloading syslinux"
test -f tmp_linux/syslinux-6.03.tar.xz  ||  wget https://kernel.org/pub/linux/utils/boot/syslinux/syslinux-6.03.tar.xz -P tmp_linux
echo "=== unpacking syslinux"
tar xf tmp_linux/syslinux-*.tar.xz -C tmp_linux

mkdir -p tmp_linux/isoimage/boot/syslinux
cp tools/iso/syslinux.cfg \
   tmp_linux/syslinux-*/bios/core/isolinux.bin \
   tmp_linux/syslinux-*/bios/com32/elflink/ldlinux/ldlinux.c32 \
   tmp_linux/isoimage/boot/syslinux

echo "=== generating mu_linux.iso"
# 'hybrid' ISO can also be used on non-optical media such as a disk or USB stick
xorriso -as mkisofs \
  -isohybrid-mbr tmp_linux/syslinux-*/bios/mbr/isohdpfx.bin \
  -c boot/syslinux/boot.cat \
  -b boot/syslinux/isolinux.bin \
    -no-emul-boot \
    -boot-load-size 4 \
    -boot-info-table \
  tmp_linux/isoimage -o mu_linux.iso
an>1-2/+6 * fixeshut2009-12-283-7/+8 * switching to using sub-windows instead of absolute positionshut2009-12-285-20/+43 * clean upshut2009-12-287-14/+1 * fixed pager, it was thinking lists are streamshut2009-12-281-1/+1 * display the contents of the file in the pagerhut2009-12-284-9/+133 * fixed mouse-event with negative coordinateshut2009-12-271-0/+8 * improved key binding implementationhut2009-12-273-25/+4 * Merge branch 'cycle' into pythonhut2009-12-271-1/+1 |\ | * changed search implementationhut2009-12-271-1/+1