linux: LEX=reflex

This commit is contained in:
Ella-0 2021-06-19 12:38:05 +01:00
parent 7791190760
commit 1c81d44858

View file

@ -1,4 +1,4 @@
pkgver=5.12.3 pkgver=5.12.10
pkgname=linux pkgname=linux
pkgrel=1 pkgrel=1
ext="dev" ext="dev"
@ -10,20 +10,21 @@ fetch() {
cd $pkgname-$pkgver cd $pkgname-$pkgver
# use Alpine's kernel config so we don't have to maintain one # use Alpine's kernel config so we don't have to maintain one
curl "https://git.alpinelinux.org/aports/plain/testing/linux-edge/config-edge.x86_64" -o .config curl "https://git.alpinelinux.org/aports/plain/testing/linux-edge/config-edge.$(uname -m)" -o .config
patch -p1 < ../kernel-no-perl.patch patch -p1 < ../kernel-no-perl.patch
patch -p1 < ../../kernel-byacc.patch patch -p1 < ../../kernel-byacc.patch
patch -p1 < ../../reflex.patch
} }
build() { build() {
cd $pkgname-$pkgver cd $pkgname-$pkgver
# gmake CC=cc CXX=c++ HOSTCC=cc HOSTCXX=c++ YACC=yacc LLVM_IAS=1 defconfig # gmake CC=cc CXX=c++ HOSTCC=cc HOSTCXX=c++ YACC=yacc LLVM_IAS=1 defconfig
gmake CC=cc CXX=c++ HOSTCC=cc HOSTCXX=c++ LEX=lex YACC=yacc LLVM_IAS=1 olddefconfig gmake CC=cc CXX=c++ HOSTCC=cc HOSTCXX=c++ LEX=reflex YACC=yacc LLVM_IAS=1 olddefconfig
# gmake CC=cc CXX=c++ HOSTCC=cc HOSTCXX=c++ LEX=lex YACC=yacc LLVM_IAS=1 menuconfig # gmake CC=cc CXX=c++ HOSTCC=cc HOSTCXX=c++ LEX=lex YACC=yacc LLVM_IAS=1 menuconfig
# cp .config ../../x86_64.config.new # cp .config ../../$(uname -m).config.new
sed -i 's/CONFIG_UNWINDER_ORC=y/# CONFIG_UNWINDER_ORC is not set/g' .config sed -i 's/CONFIG_UNWINDER_ORC=y/# CONFIG_UNWINDER_ORC is not set/g' .config
sed -i 's/# CONFIG_UNWINDER_FRAME_POINTER is not set/CONFIG_UNWINDER_FRAME_POINTER=y/g' .config sed -i 's/# CONFIG_UNWINDER_FRAME_POINTER is not set/CONFIG_UNWINDER_FRAME_POINTER=y/g' .config
gmake CC=cc CXX=c++ HOSTCC=cc HOSTCXX=c++ LEX=lex YACC=yacc LLVM_IAS=1 gmake CC=cc CXX=c++ HOSTCC=cc HOSTCXX=c++ LEX=reflex YACC=yacc LLVM_IAS=1
} }
package() { package() {