about summary refs log tree commit diff stats
path: root/tools/iso/linux
diff options
context:
space:
mode:
Diffstat (limited to 'tools/iso/linux')
-rwxr-xr-xtools/iso/linux14
1 files changed, 6 insertions, 8 deletions
diff --git a/tools/iso/linux b/tools/iso/linux
index ac0f720b..09401f11 100755
--- a/tools/iso/linux
+++ b/tools/iso/linux
@@ -1,6 +1,6 @@
 #!/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.
+# Package up an ELF binary generated by Mu into a bootable ISO image with a
+# Linux kernel.
 #
 # Must be run on Linux, and from the top-level mu/ directory.
 #
@@ -11,20 +11,18 @@
 
 set -e
 
-if [ $# -eq 0 ]
+if [ $# -ne 1 ]
 then
-  echo "Usage: `basename $0` file.subx ..."
+  echo "Usage: `basename $0` <elf file>"
   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
+cp -i $1 init
 echo init | cpio -R root:root -H newc -o | xz -9 --check=none > tmp_linux/isoimage/boot/rootfs.xz
+rm init
 
 if [ ! -d kernel.linux ]
 then
n134'>134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244