File: powerpc.cfg

package info (click to toggle)
debian-installer 20150422
  • links: PTS, VCS
  • area: main
  • in suites: jessie-kfreebsd
  • size: 5,008 kB
  • sloc: xml: 10,107; sh: 1,960; makefile: 948; perl: 613; awk: 100
file content (97 lines) | stat: -rw-r--r-- 3,251 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
SUBARCH_SUPPORTED = powerpc powerpc64 # apus prep

KERNELMAJOR = 2.6
BASEVERSION = $(LINUX_KERNEL_ABI)

# create the kernels with builtin initrd.
builtin_initrd: $(TEMP_KERNEL) $(TEMP_INITRD)
	# temporary hack
	case $(KERNELMAJOR) in \
		2.6)	\
			for subarch in $(SUBARCHES); do	\
				rm -f $(DEST)/vmlinuz-$$subarch.initrd;	\
				mkvmlinuz -v				\
					-a $$subarch			\
					-r $(KERNELVERSION)		\
					-k $(TEMP_KERNEL)		\
					-z -i $(TEMP_INITRD)		\
					-d $(TEMP)/lib			\
					-o $(DEST)/vmlinuz-$$subarch.initrd;	\
			done	\
			;;	\
		*)	\
			echo "Kernel $(KERNELMAJOR) not supported"	\
			;;\
	esac

# cd content for powerpc, includes yaboot for booting 
# apple powerpc (newworld) computers
cd_content_common:
	mkdir -p $(TEMP_CD_TREE)/$(dir install/$(TYPE))

	cp $(TEMP_KERNEL) $(TEMP_CD_TREE)/install/$(TYPE)-linux
	ln -f $(TEMP_INITRD) $(TEMP_CD_TREE)/install/$(TYPE)-initrd.gz

	# New-world bootability
	cp -f boot/powerpc/ofboot.b $(TEMP_CD_TREE)/install/
	cp -f /usr/lib/yaboot/yaboot $(TEMP_CD_TREE)/install/
	bootvars-subst MEDIA_TYPE "${MEDIA_TYPE}" \
		DEBIAN_VERSION "${DEBIAN_VERSION}" \
		BUILD_DATE "${BUILD_DATE}" \
		< boot/powerpc/boot.msg > $(TEMP_CD_TREE)/install/boot.msg
	ramdisk-size-subst $(TEMP_INITRD) \
		< boot/powerpc/yaboot.conf \
		| sed 's,\$${TYPE},$(TYPE),g' \
		> $(TEMP_CD_TREE)/install/yaboot.conf
	# CHRP bootability
	mkdir -p $(TEMP_CD_TREE)/etc
	mkdir -p $(TEMP_CD_TREE)/ppc/chrp
	cp -f $(TEMP_CD_TREE)/install/yaboot.conf $(TEMP_CD_TREE)/etc
	cp -f boot/powerpc/bootinfo.txt $(TEMP_CD_TREE)/ppc

# Adds yaboot to netboot dirs.
netboot_content_common:
	cp -f /usr/lib/yaboot/yaboot $(DEST)
	bootvars-subst MEDIA_TYPE "${MEDIA_TYPE}" \
		DEBIAN_VERSION "${DEBIAN_VERSION}" \
		BUILD_DATE "${BUILD_DATE}" \
		< boot/powerpc/boot.msg > $(DEST)/boot.msg
	ramdisk-size-subst $(TEMP_INITRD) \
	< boot/powerpc/yaboot.conf.netboot \
	| sed 's,\$${TYPE},$(TYPE),g' \
	> $(DEST)/yaboot.conf

# creates a bootable cd image for powerpc
arch_miniiso_common: cd_content_common
	genisoimage -r -T --netatalk -chrp-boot -hfs -probe -map boot/powerpc/hfs.map -part -no-desktop -hfs-bless $(TEMP_CD_TREE)/install -hfs-volid Debian-Installer/PPC -o $(TEMP_MINIISO) $(TEMP_CD_TREE)

# creates a bootable HFS filesystem, used for USB sticks
hd_media_common: $(TEMP_KERNEL) $(TEMP_INITRD)
	mkdir -p $(dir $(TEMP_BOOT))
	: | dd of=$(TEMP_BOOT) bs=1024 seek=$(FLOPPY_SIZE)
	HOME=$(TEMP) hformat -l $(DISK_LABEL) $(TEMP_BOOT)
	HOME=$(TEMP) hmount $(TEMP_BOOT)
	HOME=$(TEMP) hcopy -r $(TEMP_KERNEL) :vmlinux
	HOME=$(TEMP) hcopy -r $(TEMP_INITRD) :initrd.gz
	cp -a /usr/lib/yaboot/yaboot $(TEMP)/yaboot # used later
	HOME=$(TEMP) hcopy -r $(TEMP)/yaboot :yaboot
	HOME=$(TEMP) hattrib -c UNIX -t tbxi :yaboot

	bootvars-subst MEDIA_TYPE "${MEDIA_TYPE}" \
		DEBIAN_VERSION "${DEBIAN_VERSION}" \
		BUILD_DATE "${BUILD_DATE}" \
		< boot/powerpc/boot.msg > $(TEMP)/boot.msg
	ramdisk-size-subst $(TEMP_INITRD) \
		< boot/powerpc/yaboot.conf.hd-media \
		> $(TEMP)/yaboot.conf
	HOME=$(TEMP) hcopy -r $(TEMP)/boot.msg :boot.msg
	HOME=$(TEMP) hcopy -r $(TEMP)/yaboot.conf :yaboot.conf

	HOME=$(TEMP) hattrib -b :
	HOME=$(TEMP) humount
	rm -f $(TEMP)/.hcwd # clean up after hfsutils

	$(if $(GZIPPED),gzip -v9f $(TEMP_BOOT))


arch_tree: