summaryrefslogtreecommitdiff
path: root/i486-stage1/linux/DESCR
blob: 09714f26224321e9663cfa231f6e3b6d1d36b052 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# we currently build a monolitic kernel for the basic stuff which was
# available since 25 years. :-)

# the Linux kernel has it's own way for cross compilation
sed -i "s@make prepare@make prepare ARCH=$KERNEL_ARCH CROSS_COMPILE=$XTOOLS_ARCH_PREFIX@g" PKGBUILD
sed -i "s@make config@make config ARCH=$KERNEL_ARCH CROSS_COMPILE=$XTOOLS_ARCH_PREFIX@g" PKGBUILD

# remove make dependencies, currently we build without module support
# (TODO: though we can easily build kmod, but we are missing a simple ramdisk for stage1)
sed -i "s@make bzImage modules@make bzImage ARCH=$KERNEL_ARCH CROSS_COMPILE=$XTOOLS_ARCH_PREFIX@g" PKGBUILD
sed -i "s@make modules_install@#make modules_install@g" PKGBUILD

# disable documentation
sed -i "/depends=/s/xmlto//" PKGBUILD