Lines Matching +full:on +full:- +full:die
1 // SPDX-License-Identifier: GPL-2.0
9 * This file builds a disk-image from three different files:
11 * - setup: 8086 machine code, sets up system parm
12 * - system: 80386 code for actual system
13 * - zoffset.h: header with ZO_* defines
52 /*----------------------------------------------------------------------*/
116 while (len--) in partial_crc32()
121 static void die(const char * str, ...) in die() function
133 die("Usage: build setup system zoffset.h image"); in usage()
154 die("Unable to open `%s': %m", fname); in parse_zoffset()
155 c = fread(buf, 1, sizeof(buf) - 1, file); in parse_zoffset()
157 die("read-error on `zoffset.h'"); in parse_zoffset()
188 die("Unable to write `%s': %m", argv[4]); in main()
193 die("Unable to open `%s': %m", argv[1]); in main()
196 die("read-error on `setup'"); in main()
198 die("The setup must be at least 1024 bytes"); in main()
200 die("Boot block hasn't got boot flag (0xAA55)"); in main()
209 memset(buf+c, 0, i-c); in main()
214 die("Unable to open `%s': %m", argv[2]); in main()
216 die("Unable to stat `%s': %m", argv[2]); in main()
218 die("Unexpected file size `%s': %u != %u", argv[2], _edata, in main()
220 sz = _edata - 4; in main()
223 die("Unable to mmap '%s': %m", argv[2]); in main()
227 die("Writing setup failed"); in main()
232 die("Writing kernel failed"); in main()
237 die("Writing CRC failed"); in main()
241 die("Writing image failed"); in main()