lots of stuff
This commit is contained in:
parent
32d66a7f56
commit
b859e777d0
91 changed files with 2156 additions and 532 deletions
50
linux/rpi-linux-rev2/build.sh
Normal file
50
linux/rpi-linux-rev2/build.sh
Normal file
|
@ -0,0 +1,50 @@
|
|||
pkgver=rpi-5.10.y
|
||||
pkgname=linux
|
||||
pkgrel=1
|
||||
ext="dev"
|
||||
|
||||
fetch() {
|
||||
fetch_tar "$pkgname-$pkgver.tar.gz" f633fabf55892cf19fc9173d2b8df779 "https://github.com/raspberrypi/linux/archive/refs/heads/$pkgver.tar.gz"
|
||||
cd $pkgname-$pkgver
|
||||
|
||||
patch -p1 < ../../kernel-byacc.patch
|
||||
curl 'https://cgit.freedesktop.org/drm/drm/patch/?id=26a4dc29b74a137f45665089f6d3d633fcc9b662' | patch -p1
|
||||
}
|
||||
|
||||
_arch=$ARCH
|
||||
case $_arch in
|
||||
aarch64*) _arch="arm64" ;;
|
||||
esac
|
||||
|
||||
build() {
|
||||
cd $pkgname-$pkgver
|
||||
bad --gmake gmake CC=cc CXX=c++ HOSTCC=cc HOSTCXX=c++ YACC=yacc LLVM_IAS=1 ARCH=$_arch bcm2711_defconfig
|
||||
bad --gmake gmake CC=cc CXX=c++ HOSTCC=cc HOSTCXX=c++ YACC=yacc LLVM_IAS=1 ARCH=$_arch
|
||||
}
|
||||
|
||||
package() {
|
||||
cd $pkgname-$pkgver
|
||||
install -d $pkgdir/boot
|
||||
bad --gmake gmake CC=cc CXX=c++ HOSTCC=cc HOSTCXX=c++ YACC=yacc LLVM_IAS=1 ARCH=$_arch INSTALL_PATH=$pkgdir/boot install
|
||||
bad --gmake gmake CC=cc HOSTCC=cc LEX=flex YACC=yacc LLVM=1 LLVM_IAS=1 ARCH=$_arch INSTALL_DTBS_PATH=$pkgdir/boot dtbs_install
|
||||
bad --gmake gmake CC=cc CXX=c++ HOSTCC=cc HOSTCXX=c++ YACC=yacc LLVM_IAS=1 ARCH=$_arch INSTALL_MOD_PATH=$pkgdir/ modules_install
|
||||
|
||||
if stat /usr/bin/rsync 2>/dev/null /dev/null; then
|
||||
bad --gmake gmake CC=cc CXX=c++ HOSTCC=cc HOSTCXX=c++ YACC=yacc LLVM_IAS=1 ARCH=$_arch INSTALL_HDR_PATH=$pkgdir/usr headers_install
|
||||
else
|
||||
bad --gmake gmake CC=cc CXX=c++ HOSTCC=cc HOSTCXX=c++ YACC=yacc LLVM_IAS=1 ARCH=$_arch headers
|
||||
find -name '.*' -exec rm {} \;
|
||||
rm usr/include/Makefile
|
||||
install -d $pkgdir/usr/
|
||||
cp -r usr/include $pkgdir/usr/
|
||||
fi
|
||||
}
|
||||
|
||||
backup() {
|
||||
return
|
||||
}
|
||||
|
||||
license() {
|
||||
cd $pkgname-$pkgver
|
||||
cat COPYING
|
||||
}
|
35
linux/rpi-linux-rev2/kernel-byacc.patch
Normal file
35
linux/rpi-linux-rev2/kernel-byacc.patch
Normal file
|
@ -0,0 +1,35 @@
|
|||
diff --git a/scripts/Makefile.host b/scripts/Makefile.host
|
||||
index 4c51c95d40f4..64e98e1d4825 100644
|
||||
--- a/scripts/Makefile.host
|
||||
+++ b/scripts/Makefile.host
|
||||
@@ -11,7 +11,7 @@ $(obj)/%.lex.c: $(src)/%.l FORCE
|
||||
# YACC
|
||||
# ---------------------------------------------------------------------------
|
||||
quiet_cmd_bison = YACC $(basename $@).[ch]
|
||||
- cmd_bison = $(YACC) -o $(basename $@).c --defines=$(basename $@).h -t -l $<
|
||||
+ cmd_bison = $(YACC) -b $(basename $(basename $@)) -d -t -l $<
|
||||
|
||||
$(obj)/%.tab.c $(obj)/%.tab.h: $(src)/%.y FORCE
|
||||
$(call if_changed,bison)
|
||||
--- a/scripts/genksyms/Makefile
|
||||
+++ b/scripts/genksyms/Makefile
|
||||
@@ -14,7 +14,7 @@
|
||||
ifeq ($(findstring 1,$(KBUILD_EXTRA_WARN)),)
|
||||
|
||||
quiet_cmd_bison_no_warn = $(quiet_cmd_bison)
|
||||
- cmd_bison_no_warn = $(YACC) --version >/dev/null; \
|
||||
+ cmd_bison_no_warn = $(YACC) -V >/dev/null; \
|
||||
$(cmd_bison) 2>/dev/null
|
||||
|
||||
$(obj)/pars%.tab.c $(obj)/pars%.tab.h: $(src)/pars%.y FORCE
|
||||
--- a/scripts/genksyms/lex.l
|
||||
+++ b/scripts/genksyms/lex.l
|
||||
@@ -19,6 +19,8 @@
|
||||
#include "genksyms.h"
|
||||
#include "parse.tab.h"
|
||||
|
||||
+extern YYSTYPE yylval;
|
||||
+
|
||||
/* We've got a two-level lexer here. We let flex do basic tokenization
|
||||
and then we categorize those basic tokens in the second stage. */
|
||||
#define YY_DECL static int yylex1(void)
|
Loading…
Add table
Add a link
Reference in a new issue