summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--TODOS8
-rwxr-xr-xbuild_stage1.sh2
-rw-r--r--i486-stage1/gdb/DESCR12
3 files changed, 21 insertions, 1 deletions
diff --git a/TODOS b/TODOS
index ff69de7..495a701 100644
--- a/TODOS
+++ b/TODOS
@@ -33,3 +33,11 @@
- make: recursive tarkets like all-recursive don't work, neither with cross-compiled
make nor with the recompiled make on the stage1 system. No clue why?!
- some packages get build more than onces (linux-api-headers, pacman-mirrorlist)
+- make a wrapper for sed in DESCR, which is actually able to detect whether
+ the patch was successful or not. Avoid hard to detect errors, when the
+ upstream PKGBUILD(s) change.
+- gdb uses cross-compiler source files for debugging:
+ Temporary breakpoint 1, 0x004005b0 in main ()
+ (gdb) list
+ 1 /home/cross/.build/i486-unknown-linux-gnu/src/gcc/libgcc/libgcc2.c: No such file or directory.
+
diff --git a/build_stage1.sh b/build_stage1.sh
index 3565ea6..7c19766 100755
--- a/build_stage1.sh
+++ b/build_stage1.sh
@@ -22,7 +22,7 @@ inetutils bc kmod linux uinit
net-tools libmnl libnfnetlink iptables iproute2
libedit openssh
make mpfr gawk libmpc binutils gcc glibc
-libunwind strace"
+libunwind strace gdb"
for p in $PACKAGES; do
"$SCRIPT_DIR/build_stage1_package.sh" "$p" || exit 1
diff --git a/i486-stage1/gdb/DESCR b/i486-stage1/gdb/DESCR
new file mode 100644
index 0000000..9b1b06d
--- /dev/null
+++ b/i486-stage1/gdb/DESCR
@@ -0,0 +1,12 @@
+# prepare configure for cross-compilation
+sed -i "/build/,/}/ s/.\/configure/.\/configure --host=$TARGET_ARCH --target=$TARGET_ARCH --build=$BUILD_ARCH/" PKGBUILD
+
+# disable python
+sed -i "/makedepends=/s/python//" PKGBUILD
+sed -i "/depends=/s/python//" PKGBUILD
+sed -i "s@--with-python=/usr/bin/python3@--without-python@g" PKGBUILD
+
+# disable guile
+sed -i "/makedepends=/s/guile2.0//" PKGBUILD
+sed -i "/depends=/s/guile2.0//" PKGBUILD
+sed -i "s@--with-guile=guile-2.0@--without-guile@g" PKGBUILD