Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 152945 | Differences between
and this patch

Collapse All | Expand All

(-)/usr/share/genkernel/gen_compile.sh (-81 / +17 lines)
Lines 1-5 Link Here
1
#!/bin/bash
1
#!/bin/bash
2
2
3
. gen_unionfs_helpers.sh
4
3
compile_kernel_args()
5
compile_kernel_args()
4
{
6
{
5
	local ARGS
7
	local ARGS
Lines 318-412 Link Here
318
}
320
}
319
321
320
compile_unionfs_modules() {
322
compile_unionfs_modules() {
323
	# This sets ${UNIONFS_VERSION} to the correct value.
324
	get_unionfs_version
325
	UNIONFS_MODULES_BINCACHE=${UNIONFS_MODULES_BINCACHE/UNIONFS_VER/${UNIONFS_VERSION}}
326
	UNIONFS_BINCACHE=${UNIONFS_BINCACHE/UNIONFS_VER/${UNIONFS_VERSION}}
327
	# subsitute source tarball here.
328
	# the user can override this functionality by changing
329
	# ${UNIONFS_SRCTAR} in /etc/genkernel.conf. genkernel can
330
	# print a warning if the two versions do not match.
331
	UNIONFS_SRCTAR=${UNIONFS_SRCTAR/UNIONFS_VER/${UNIONFS_VERSION}}
332
	UNIONFS_DIR="unionfs-${UNIONFS_VERSION}"
321
	if [ ! -f "${UNIONFS_MODULES_BINCACHE}" ]
333
	if [ ! -f "${UNIONFS_MODULES_BINCACHE}" ]
322
	then
334
	then
323
		[ -f "${UNIONFS_SRCTAR}" ] ||
335
		print_info 1 "UNIONFS: ${UNIONFS_VERSION} ${UNIONFS_SRCTAR}"
324
			gen_die "Could not find unionfs source tarball: ${UNIONFS_SRCTAR}!"
336
		print_info 1 "UNIONFS callback: ${UNIONFS_COMPILE_FUNC}"
325
		cd "${TEMP}"
337
		${UNIONFS_COMPILE_FUNC}
326
		rm -rf ${UNIONFS_DIR} > /dev/null
327
		rm -rf unionfs > /dev/null
328
		mkdir -p unionfs
329
		/bin/tar -zxpf ${UNIONFS_SRCTAR} ||
330
			gen_die 'Could not extract unionfs source tarball!'
331
		[ -d "${UNIONFS_DIR}" ] ||
332
			gen_die 'Unionfs directory ${UNIONFS_DIR} is invalid!'
333
		cd "${UNIONFS_DIR}"
334
		print_info 1 'unionfs modules: >> Compiling...'
335
		echo "LINUXSRC=${KERNEL_DIR}" >> fistdev.mk
336
		echo 'TOPINC=-I$(LINUXSRC)/include' >> fistdev.mk
337
		echo "MODDIR= /lib/modules/${KV}" >> fistdev.mk
338
		echo "KERNELVERSION=${KV}" >> fistdev.mk
339
		# Fix for hardened/selinux systems to have extened attributes
340
		# per r2d2's request.  Also add -DUNIONFS_UNSUPPORTED for 2.6.16
341
		echo "EXTRACFLAGS=-DUNIONFS_XATTR -DFIST_SETXATTR_CONSTVOID -DUNIONFS_UNSUPPORTED" \
342
			>> fistdev.mk
343
		# Here we do something really nasty and disable debugging, along with
344
		# change our default CFLAGS
345
		echo "UNIONFS_DEBUG_CFLAG=-DUNIONFS_NDEBUG" >> fistdev.mk
346
		echo "UNIONFS_OPT_CFLAG= -O2 -pipe" >> fistdev.mk
347
348
		if [ "${PAT}" -ge '6' ]
349
		then
350
			cd "${TEMP}"
351
			cd "${UNIONFS_DIR}"
352
			# Compile unionfs module within the unionfs
353
			# environment not within the kernelsrc dir
354
			make unionfs.ko || gen_die 'failed to compile unionfs'
355
		else
356
			gen_die 'unionfs is only supported on 2.6 targets'
357
		fi
358
		print_info 1 'unionfs: >> Copying to cache...'
359
	
360
		mkdir -p ${TEMP}/unionfs/lib/modules/${KV}/kernel/fs/unionfs
361
		
362
		if [ -f unionfs.ko ]
363
		then 
364
			cp -f unionfs.ko ${TEMP}/unionfs/lib/modules/${KV}/kernel/fs/unionfs
365
		else
366
			cp -f unionfs.o ${TEMP}/unionfs/lib/modules/${KV}/kernel/fs/unionfs
367
 		fi
368
	
369
		cd ${TEMP}/unionfs
370
		/bin/tar -cjf "${UNIONFS_MODULES_BINCACHE}" . ||
371
			gen_die 'Could not create unionfs modules binary cache'
372
	
373
		cd "${TEMP}"
374
		rm -rf "${UNIONFS_DIR}" > /dev/null
375
		rm -rf unionfs > /dev/null
376
	fi
338
	fi
377
}
339
}
378
340
379
compile_unionfs_utils() {
341
compile_unionfs_utils() {
380
	if [ ! -f "${UNIONFS_BINCACHE}" ]
342
	if [ ! -f "${UNIONFS_BINCACHE}" ]
381
	then
343
	then
382
		[ -f "${UNIONFS_SRCTAR}" ] ||
344
		print_info 1 "unionfs tools callback: ${UNIONFS_COMPILE_UTILS_FUNC}"
383
			gen_die "Could not find unionfs source tarball: ${UNIONFS_SRCTAR}!"
345
		${UNIONFS_COMPILE_UTILS_FUNC}
384
		cd "${TEMP}"
385
		rm -rf ${UNIONFS_DIR} > /dev/null
386
		rm -rf unionfs > /dev/null
387
		mkdir -p unionfs/sbin
388
		/bin/tar -zxpf ${UNIONFS_SRCTAR} ||
389
			gen_die 'Could not extract unionfs source tarball!'
390
		[ -d "${UNIONFS_DIR}" ] ||
391
			gen_die 'Unionfs directory ${UNIONFS_DIR} is invalid!'
392
		cd "${UNIONFS_DIR}"
393
		print_info 1 'unionfs tools: >> Compiling...'
394
		sed -i Makefile -e 's|${CC} -o|${CC} -static -o|g'
395
		compile_generic utils utils
396
		
397
		print_info 1 'unionfs: >> Copying to cache...'
398
		strip uniondbg unionctl
399
		cp uniondbg ${TEMP}/unionfs/sbin/ || 
400
			gen_die 'Could not copy the uniondbg binary to the tmp directory'
401
		cp unionctl ${TEMP}/unionfs/sbin/ ||
402
			gen_die 'Could not copy the unionctl binary to the tmp directory'
403
		cd ${TEMP}/unionfs	
404
		/bin/tar -cjf "${UNIONFS_BINCACHE}" . ||
405
			gen_die 'Could not create unionfs tools binary cache'
406
		
407
		cd "${TEMP}"
408
		rm -rf "${UNIONFS_DIR}" > /dev/null
409
		rm -rf unionfs > /dev/null
410
	fi
346
	fi
411
}
347
}
412
348
(-)/usr/share/genkernel/gen_unionfs_helpers.sh (+297 lines)
Line 0 Link Here
1
#!/bin/bash
2
# Daniel Casimiro <dan.casimiro@gmail.com>
3
#
4
5
# Emulates:  hash[key]=value
6
# * This function is from:
7
#     http://tldp.org/LDP/abs/html/contributed-scripts.html#HASHLIB
8
#
9
# Params:
10
# 1 - hash
11
# 2 - key
12
# 3 - value
13
function hash_set {
14
	eval "${Hash_config_varname_prefix}${1}_${2}=\"${3}\""
15
}
16
17
# Emulates something similar to:
18
#   foreach($hash as $key => $value) { fun($key,$value); }
19
# * This function is from:
20
#     http://tldp.org/LDP/abs/html/contributed-scripts.html#HASHLIB
21
#
22
# It is possible to write different variations of this function.
23
# Here we use a function call to make it as "generic" as possible.
24
#
25
# Params:
26
# 1 - hash
27
# 2 - function name
28
function hash_foreach {
29
	local keyname oldIFS="$IFS"
30
	IFS=' '
31
	for i in $(eval "echo \${!${Hash_config_varname_prefix}${1}_*}"); do
32
		keyname=$(eval "echo \${i##${Hash_config_varname_prefix}${1}_}")
33
		eval "$2 $keyname \"\$$i\""
34
	done
35
	IFS="$oldIFS"
36
}
37
38
# UnionFS requires different versions for different kernels.
39
# This list is as of 27 October 2006.
40
# Kernel Version Compatibility:
41
# Kernel Version 	Unionfs Version
42
# 2.4.x (x>19) 	1.0.14
43
# 2.6.x (x<9) 	Not Supported
44
# 2.6.9 - 2.6.15 	1.1.5
45
# 2.6.16 	1.2
46
# 2.6.17 	1.3
47
# 2.6.18        1.4
48
# 2.6.newer 	CVS Snapshots
49
50
# $1 unionfs version
51
# $2 kernel version regular expression
52
test_unionfs_version() {
53
    MYKV=`expr match "${KV}" $2`
54
    # this test can be improved...
55
    if [ ${MYKV} -gt 0 ]; then
56
	# The keys cannot contain '.', so underscores are substituted here.
57
	UNIONFS_VERSION=${1//_/.}
58
    fi
59
}
60
61
# set kernel versions regular expressions and unionfs versions in config file
62
# build a hash that maps kernel version re's to unionfs version
63
# for each hash key, use the value when the key regular expression evals
64
# true when compared to ${BASEKV}
65
get_unionfs_version() {
66
    # Do not support 2.4 kernels yet; just need another RE.
67
    # The hash is hard coded here, but it could be built from variables defined
68
    # in /etc/genkernel.conf
69
    hash_set unionfsversions 1_1_5      "2\.6\.\(\<1[0-5]\>\|9\)"
70
    hash_set unionfsversions 1_2        "2\.6\.16"
71
    hash_set unionfsversions 1_3        "2\.6\.17"
72
    hash_set unionfsversions 1_4        "2\.6\.18"
73
74
    # Unset the UNIONFS_VERSION that was set in /etc/genkernel.conf
75
    # This function could check if the variable is set, and then break
76
    # Or, it could use a different variable name
77
    UNIONFS_VERSION=
78
    hash_foreach unionfsversions test_unionfs_version
79
80
    if [ -z ${UNIONFS_VERSION} ]; then
81
	gen_die "${KV} is an invalid kernel for UNIONFS!"
82
    fi
83
84
    tmpunion=${UNIONFS_VERSION//./_}
85
    UNIONFS_COMPILE_FUNC=compile_unionfs_modules_${tmpunion:0:3}
86
    UNIONFS_COMPILE_UTILS_FUNC=compile_unionfs_utils_${tmpunion:0:3}
87
}
88
89
compile_unionfs_modules_1_1() {
90
    [ -f "${UNIONFS_SRCTAR}" ] ||
91
	gen_die "Could not find unionfs source tarball: ${UNIONFS_SRCTAR}!"
92
93
    cd "${TEMP}"
94
    rm -rf ${UNIONFS_DIR} > /dev/null
95
    rm -rf unionfs > /dev/null
96
    mkdir -p unionfs
97
    /bin/tar -zxpf ${UNIONFS_SRCTAR} ||
98
	gen_die 'Could not extract unionfs source tarball!'
99
100
    [ -d "${UNIONFS_DIR}" ] ||
101
	gen_die 'Unionfs directory ${UNIONFS_DIR} is invalid!'
102
    cd "${UNIONFS_DIR}"
103
    print_info 1 'unionfs modules: >> Compiling...'
104
    echo "LINUXSRC=${KERNEL_DIR}" >> fistdev.mk
105
    echo 'TOPINC=-I$(LINUXSRC)/include' >> fistdev.mk
106
    echo "MODDIR= /lib/modules/${KV}" >> fistdev.mk
107
    echo "KERNELVERSION=${KV}" >> fistdev.mk
108
    # Fix for hardened/selinux systems to have extened attributes
109
    # per r2d2's request.  Also add -DUNIONFS_UNSUPPORTED for 2.6.16
110
    echo "EXTRACFLAGS=-DUNIONFS_XATTR -DFIST_SETXATTR_CONSTVOID -DUNIONFS_UNSUPPORTED" \
111
	>> fistdev.mk
112
    # Here we do something really nasty and disable debugging, along with
113
    # change our default CFLAGS
114
    echo "UNIONFS_DEBUG_CFLAG=-DUNIONFS_NDEBUG" >> fistdev.mk
115
    echo "UNIONFS_OPT_CFLAG= -O2 -pipe" >> fistdev.mk
116
117
    if [ "${PAT}" -ge '6' ]
118
    then
119
	cd "${TEMP}"
120
	cd "${UNIONFS_DIR}"
121
	sed -i Makefile -e 's|-Werror||g'
122
	# Compile unionfs module within the unionfs
123
	# environment not within the kernelsrc dir
124
	make unionfs.ko || gen_die 'failed to compile unionfs'
125
    else
126
	gen_die 'unionfs is only supported on 2.6 targets'
127
    fi
128
    print_info 1 'unionfs: >> Copying to cache...'
129
	
130
    mkdir -p ${TEMP}/unionfs/lib/modules/${KV}/kernel/fs/unionfs
131
		
132
    if [ -f unionfs.ko ]
133
    then 
134
	cp -f unionfs.ko ${TEMP}/unionfs/lib/modules/${KV}/kernel/fs/unionfs
135
    else
136
	cp -f unionfs.o ${TEMP}/unionfs/lib/modules/${KV}/kernel/fs/unionfs
137
    fi
138
	
139
    cd ${TEMP}/unionfs
140
    /bin/tar -cjf "${UNIONFS_MODULES_BINCACHE}" . ||
141
	gen_die 'Could not create unionfs modules binary cache'
142
	
143
    cd "${TEMP}"
144
    rm -rf "${UNIONFS_DIR}" > /dev/null
145
    rm -rf unionfs > /dev/null
146
}
147
148
compile_unionfs_modules_1_2() {
149
    compile_unionfs_modules_1_1
150
}
151
152
compile_unionfs_modules_1_3() {
153
    [ -f "${UNIONFS_SRCTAR}" ] ||
154
	gen_die "Could not find unionfs source tarball: ${UNIONFS_SRCTAR}!"
155
156
    cd "${TEMP}"
157
    rm -rf ${UNIONFS_DIR} > /dev/null
158
    rm -rf unionfs* > /dev/null
159
    mkdir unionfs
160
    /bin/tar xzpf ${UNIONFS_SRCTAR} ||
161
	gen_die 'Could not extract unionfs source tarball!'
162
163
    [ -d "${UNIONFS_DIR}" ] ||
164
	gen_die 'Unionfs directory ${UNIONFS_DIR} is invalid!'
165
    cd "${UNIONFS_DIR}"
166
    print_info 1 'unionfs modules: >> Compiling...'
167
    echo "LINUXSRC=${KERNEL_DIR}" >> fistdev.mk
168
    echo 'TOPINC=-I$(LINUXSRC)/include' >> fistdev.mk
169
    echo "MODDIR= /lib/modules/${KV}" >> fistdev.mk
170
    echo "KVERS=${KV}" >> fistdev.mk
171
    echo "KERNELVERSION=${KV}" >> fistdev.mk
172
    # Fix for hardened/selinux systems to have extened attributes
173
    # per r2d2's request.  Also add -DUNIONFS_UNSUPPORTED for 2.6.16
174
    echo "EXTRACFLAGS=-DUNIONFS_XATTR -DFIST_SETXATTR_CONSTVOID -DUNIONFS_UNSUPPORTED" \
175
	>> fistdev.mk
176
    # Here we do something really nasty and disable debugging, along with
177
    # change our default CFLAGS
178
    echo "UNIONFS_DEBUG_CFLAG=-DUNIONFS_NDEBUG" >> fistdev.mk
179
    echo "UNIONFS_OPT_CFLAG= -O2 -pipe" >> fistdev.mk
180
181
    if [ "${PAT}" -ge '6' ]
182
    then
183
	# ARCH is used by unionfs - and conflicts with genkernel
184
	ARCH_PUSH=${ARCH}
185
	unset ARCH
186
	#sed -i Makefile -e 's|-Werror||g'
187
	# Compile unionfs module within the unionfs
188
	# environment not within the kernelsrc dir
189
	make unionfs.ko || gen_die 'failed to compile unionfs'
190
	ARCH=${ARCH_PUSH}
191
    else
192
	gen_die 'unionfs is only supported on 2.6 targets'
193
    fi
194
    print_info 1 'unionfs: >> Copying to cache...'
195
	
196
    mkdir -p ${TEMP}/unionfs/lib/modules/${KV}/kernel/fs/unionfs
197
		
198
    if [ -f unionfs.ko ]
199
    then 
200
	cp -f unionfs.ko ${TEMP}/unionfs/lib/modules/${KV}/kernel/fs/unionfs
201
    else
202
	cp -f unionfs.o ${TEMP}/unionfs/lib/modules/${KV}/kernel/fs/unionfs
203
    fi
204
	
205
    cd ${TEMP}/unionfs
206
    /bin/tar -cjf "${UNIONFS_MODULES_BINCACHE}" . ||
207
	gen_die 'Could not create unionfs modules binary cache'
208
	
209
    cd "${TEMP}"
210
    rm -rf "${UNIONFS_DIR}" > /dev/null
211
    rm -rf unionfs* > /dev/null
212
}
213
214
compile_unionfs_modules_1_4() {
215
    compile_unionfs_modules_1_3
216
}
217
218
# uniofs_utils
219
compile_unionfs_utils_1_1() {
220
	if [ ! -f "${UNIONFS_BINCACHE}" ]
221
	then
222
		[ -f "${UNIONFS_SRCTAR}" ] ||
223
			gen_die "Could not find unionfs source tarball: ${UNIONFS_SRCTAR}!"
224
		cd "${TEMP}"
225
		rm -rf ${UNIONFS_DIR} > /dev/null
226
		rm -rf unionfs > /dev/null
227
		mkdir -p unionfs/sbin
228
		/bin/tar -zxpf ${UNIONFS_SRCTAR} ||
229
			gen_die 'Could not extract unionfs source tarball!'
230
		[ -d "${UNIONFS_DIR}" ] ||
231
			gen_die 'Unionfs directory ${UNIONFS_DIR} is invalid!'
232
		cd "${UNIONFS_DIR}"
233
		print_info 1 'unionfs tools: >> Compiling...'
234
		sed -i Makefile -e 's|${CC} -o|${CC} -static -o|g'
235
		compile_generic utils utils
236
		
237
		print_info 1 'unionfs: >> Copying to cache...'
238
		strip uniondbg unionctl
239
		cp uniondbg ${TEMP}/unionfs/sbin/ || 
240
			gen_die 'Could not copy the uniondbg binary to the tmp directory'
241
		cp unionctl ${TEMP}/unionfs/sbin/ ||
242
			gen_die 'Could not copy the unionctl binary to the tmp directory'
243
		cd ${TEMP}/unionfs	
244
		/bin/tar -cjf "${UNIONFS_BINCACHE}" . ||
245
			gen_die 'Could not create unionfs tools binary cache'
246
		
247
		cd "${TEMP}"
248
		rm -rf "${UNIONFS_DIR}" > /dev/null
249
		rm -rf unionfs > /dev/null
250
	fi
251
}
252
253
compile_unionfs_utils_1_2() {
254
    compile_unionfs_utils_1_1
255
}
256
257
compile_unionfs_utils_1_3() {
258
	if [ ! -f "${UNIONFS_BINCACHE}" ]
259
	then
260
		[ -f "${UNIONFS_SRCTAR}" ] ||
261
			gen_die "Could not find unionfs source tarball: ${UNIONFS_SRCTAR}!"
262
		cd "${TEMP}"
263
		rm -rf ${UNIONFS_DIR} > /dev/null
264
		rm -rf unionfs > /dev/null
265
		mkdir -p unionfs/sbin
266
		/bin/tar -zxpf ${UNIONFS_SRCTAR} ||
267
			gen_die 'Could not extract unionfs source tarball!'
268
		[ -d "${UNIONFS_DIR}" ] ||
269
			gen_die 'Unionfs directory ${UNIONFS_DIR} is invalid!'
270
		cd "${UNIONFS_DIR}"
271
		print_info 1 'unionfs tools: >> Compiling...'
272
		sed -i utils/Makefile -e 's|${CC} -o|${CC} -static -o|g'
273
		sed -i Makefile -e 's|${CC} -o|${CC} -static -o|g'
274
		compile_generic utils utils
275
276
		print_info 1 'moving into utils directory...'
277
		cd utils
278
279
		print_info 1 'unionfs: >> Copying to cache...'
280
		strip uniondbg unionctl
281
		cp uniondbg ${TEMP}/unionfs/sbin/ || 
282
			gen_die 'Could not copy the uniondbg binary to the tmp directory'
283
		cp unionctl ${TEMP}/unionfs/sbin/ ||
284
			gen_die 'Could not copy the unionctl binary to the tmp directory'
285
		cd ${TEMP}/unionfs	
286
		/bin/tar -cjf "${UNIONFS_BINCACHE}" . ||
287
			gen_die 'Could not create unionfs tools binary cache'
288
		
289
		cd "${TEMP}"
290
		rm -rf "${UNIONFS_DIR}" > /dev/null
291
		rm -rf unionfs > /dev/null
292
	fi
293
}
294
295
compile_unionfs_utils_1_4() {
296
    compile_unionfs_utils_1_3
297
}
(-)/usr/share/genkernel/sample_unionfs_genkernel.conf (+142 lines)
Line 0 Link Here
1
# Genkernel Configuration File
2
3
# ===========GENKERNEL BASIC CONFIGURATION=============
4
5
# Run 'make menuconfig' before compiling this kernel?
6
MENUCONFIG="no"
7
8
# Run 'make clean' before compilation?
9
# If set to NO, implies MRPROPER WILL NOT be run
10
# Also, if clean is NO, it won't copy over any configuration
11
# file, it will use what's there.
12
CLEAN="yes"
13
14
# Run 'make mrproper' before configuration/compilation?
15
MRPROPER="yes"
16
17
# Copy bootsplash into the initrd image?
18
BOOTSPLASH="yes"
19
20
# Override the arch detection?
21
# ARCH_OVERRIDE="x86"
22
23
# Mount BOOTDIR automatically if it isn't mounted?
24
MOUNTBOOT="yes"
25
26
# Save the new configuration in /etc/kernels upon
27
# successfull compilation
28
SAVE_CONFIG="yes"
29
30
# Use Color output in Genkernel?
31
USECOLOR="yes"
32
33
# Add new kernel to grub?
34
# BOOTLOADER="grub"
35
36
# Clear initramfs cpio cache dir
37
# CLEAR_CPIO_CACHE="yes"
38
39
# Clear build cache dir
40
# CLEAR_CACHE_DIR="yes"
41
42
43
# =========GENKERNEL LOCATION CONFIGURATION============
44
# Variables:
45
#   %%ARCH%%  - Final determined architecture
46
#   %%CACHE%% - Final determined cache location
47
48
# Set the boot directory, default is /boot
49
#BOOTDIR="/boot"
50
51
# Default share directory location
52
GK_SHARE="/usr/share/genkernel"
53
54
# Location of helper-scripts
55
#GK_BIN="${GK_SHARE}/bin"
56
GK_BIN="${GK_SHARE}"
57
# Location of the default cache
58
CACHE_DIR="${GK_SHARE}/pkg/%%ARCH%%"
59
# Log output file
60
DEBUGFILE="/var/log/genkernel.log"
61
# Debug Level
62
DEBUGLEVEL=1
63
64
# Default location of kernel source
65
DEFAULT_KERNEL_SOURCE="/usr/src/linux"
66
# Default kernel config (only use to override using %%ARCH%%/kernel-config-${VER}.${PAT} !)
67
# DEFAULT_KERNEL_CONFIG="${GK_SHARE}/%%ARCH%%/kernel-config"
68
69
# Configuration file for busybox
70
BUSYBOX_CONFIG="${GK_SHARE}/%%ARCH%%/busy-config"
71
# BusyBox Version
72
BUSYBOX_VER="1.1.3+gentoo"
73
# Busybox bin-cache location, to store pre-compiled busybox
74
# binary is just a bzip2 busybox executable
75
BUSYBOX_BINCACHE="%%CACHE%%/busybox-${BUSYBOX_VER}-%%ARCH%%.bz2"
76
# Location of BusyBox source tarball
77
BUSYBOX_SRCTAR="${GK_SHARE}/pkg/busybox-${BUSYBOX_VER}.tar.bz2"
78
# Directory created after busybox tarball is extracted
79
BUSYBOX_DIR="busybox-${BUSYBOX_VER}"
80
81
MODULE_INIT_TOOLS_VER="0.9.15-pre4"
82
MODULE_INIT_TOOLS_SRCTAR="${GK_SHARE}/pkg/module-init-tools-${MODULE_INIT_TOOLS_VER}.tar.bz2"
83
MODULE_INIT_TOOLS_DIR="module-init-tools-${MODULE_INIT_TOOLS_VER}"
84
MODULE_INIT_TOOLS_BINCACHE="%%CACHE%%/insmod-%%ARCH%%-static-2.6.bz2"
85
86
MODUTILS_VER="2.4.26"
87
MODUTILS_SRCTAR="${GK_SHARE}/pkg/modutils-${MODUTILS_VER}.tar.bz2"
88
MODUTILS_DIR="modutils-${MODUTILS_VER}"
89
MODUTILS_BINCACHE="%%CACHE%%/insmod-%%ARCH%%-static-2.4.bz2"
90
91
DIETLIBC_VER="0.27"
92
DIETLIBC_SRCTAR="${GK_SHARE}/pkg/dietlibc-${DIETLIBC_VER}.tar.bz2"
93
DIETLIBC_DIR="dietlibc-${DIETLIBC_VER}"
94
DIETLIBC_BINCACHE="%%CACHE%%/dietlibc-${DIETLIBC_VER}-%%ARCH%%.tar.bz2"
95
DIETLIBC_BINCACHE_TEMP="%%CACHE%%/dietlibc-${DIETLIBC_VER}-%%ARCH%%-tempdir"
96
97
DEVFSD_VER="1.3.25-dietlibc-kernel25"
98
DEVFSD_SRCTAR="${GK_SHARE}/pkg/devfsd-${DEVFSD_VER}.tar.bz2"
99
DEVFSD_DIR="devfsd"
100
DEVFSD_BINCACHE="%%CACHE%%/devfsd-${DEVFSD_VER}-%%ARCH%%.bz2"
101
DEVFSD_CONF_BINCACHE="%%CACHE%%/devfsd-conf-${DIETLIBC_VER}-%%ARCH%%.bz2"
102
103
#UDEV_VER="VERSION_UDEV"
104
#UDEV_DIR="udev-${UDEV_VER}"
105
#UDEV_SRCTAR="${GK_SHARE}/pkg/udev-${UDEV_VER}.tar.bz2"
106
#UDEV_BINCACHE="%%CACHE%%/udev-${UDEV_VER}-%%ARCH%%.tar.bz2"
107
108
#KLIBC_VER="VERSION_KLIBC"
109
#KLIBC_DIR="klibc-${KLIBC_VER}"
110
#KLIBC_SRCTAR="${GK_SHARE}/pkg/klibc-${KLIBC_VER}.tar.bz2"
111
#KLIBC_BINCACHE="%%CACHE%%/klibc-${KLIBC_VER}-%%ARCH%%.tar.bz2"
112
113
DEVICE_MAPPER_VER="1.00.17"
114
DEVICE_MAPPER_DIR="device-mapper.${DEVICE_MAPPER_VER}"
115
DEVICE_MAPPER_SRCTAR="${GK_SHARE}/pkg/device-mapper.${DEVICE_MAPPER_VER}.tgz"
116
DEVICE_MAPPER_BINCACHE="%%CACHE%%/device-mapper-${DEVICE_MAPPER_VER}-%%ARCH%%.tar.bz2"
117
118
LVM2_VER="2.00.25"
119
LVM2_DIR="LVM2.${LVM2_VER}"
120
LVM2_SRCTAR="${GK_SHARE}/pkg/LVM2.${LVM2_VER}.tgz"
121
LVM2_BINCACHE="%%CACHE%%/LVM2.${LVM2_VER}-%%ARCH%%.tar.bz2"
122
123
DMRAID_VER="1.0.0.rc10"
124
DMRAID_DIR="dmraid/${DMRAID_VER}"
125
DMRAID_SRCTAR="${GK_SHARE}/pkg/dmraid-${DMRAID_VER}.tar.bz2"
126
DMRAID_BINCACHE="%%CACHE%%/dmraid-${DMRAID_VER}-%%ARCH%%.tar.bz2"
127
128
# Kernel Version Compatibility
129
# (from http://www.am-utils.org/project-unionfs.html)
130
131
# 2.6.9 - 2.6.15	1.1.5
132
# 2.6.16			1.2
133
# 2.6.17			1.3
134
135
UNIONFS_SRCTAR="${GK_SHARE}/pkg/unionfs-UNIONFS_VER.tar.gz"
136
UNIONFS_BINCACHE="%%CACHE%%/unionfs-UNIONFS_VER-tools-%%ARCH%%.tar.bz2"
137
UNIONFS_MODULES_BINCACHE="%%CACHE%%/unionfs-UNIONFS_VER-modules-%%KV%%-%%ARCH%%.tar.bz2"
138
139
E2FSPROGS_VER="1.38"
140
E2FSPROGS_DIR="e2fsprogs-${E2FSPROGS_VER}"
141
E2FSPROGS_SRCTAR="${GK_SHARE}/pkg/e2fsprogs-${E2FSPROGS_VER}.tar.gz"
142
BLKID_BINCACHE="%%CACHE%%/blkid-${E2FSPROGS_VER}-%%ARCH%%.bz2"

Return to bug 152945