From DoBi-tyndur at gmx.net Sat Aug 13 19:20:15 2011 From: DoBi-tyndur at gmx.net (DoBi-tyndur at gmx.net) Date: Sat, 13 Aug 2011 19:20:15 +0200 Subject: [tyndur-devel] =?iso-8859-1?q?=5Blbuilds=5D_Make_3=2E81_zu_Crosst?= =?iso-8859-1?q?ools_hinzugef=FCgt=2E?= Message-ID: <20110813172015.319130@gmx.net> From DoBi-tyndur at gmx.net Sat Aug 13 21:03:04 2011 From: DoBi-tyndur at gmx.net (Dominik Bittner) Date: Sat, 13 Aug 2011 21:03:04 +0200 Subject: [PATCH] =?utf-8?q?Build-Crosstools:=20+=20Make=203.81=20hinzugef=C3?= =?utf-8?q?=83=C2=BCgt,=20da=20fpc=20sich=20mit=20make=20>=203.81=20nicht=20?= =?utf-8?q?kompilieren=20l=C3=83=C2=A4sst.=20Signed-off-by:=20Dominik=20Bitt?= =?utf-8?q?ner=20?= Message-ID: --- scripts/build_crosstools | 25 ++++++++++++++++++++++++- 1 files changed, 24 insertions(+), 1 deletions(-) diff --git a/scripts/build_crosstools b/scripts/build_crosstools index b3589fd..b833b90 100755 --- a/scripts/build_crosstools +++ b/scripts/build_crosstools @@ -44,6 +44,7 @@ mkdir -p ${TMP}/cross-binutils/build mkdir -p ${TMP}/cross-gcc/build mkdir -p ${TMP}/cross-fpc mkdir -p ${TMP}/cross-fasm +mkdir -p ${TMP}/make/build # # User nerven @@ -205,6 +206,28 @@ echo -e "[gcc] Abgeschlossen\n" fi # +# Make 3.81 für FPC +# +if [ ! -f $TMP/make/build/bin/make ]; then + +rm -rf ${TMP}/make/make-3.81 +cd ${TMP}/make +echo "[make] Verion 3.81" +echo "[make] Herunterladen..." + +[ -f make-3.81.tar.bz2 ] || wget -q http://ftp.gnu.org/gnu/make/make-3.81.tar.bz2 || die "Fehler beim Herrunterladen." +echo "[make] Entpacken..." +tar -xvf make-3.81.tar.bz2 +echo "[make] Kompilieren" +cd make-3.81 +./configure --prefix=${TMP}/make/build +make +echo "[make] Installieren." +make install +echo "[make] Fertig." +fi + +# # FPC # if [ ! -f $PREFIX/bin/fpc ]; then @@ -247,7 +270,7 @@ export PATH="$PATH:`pwd`" echo "[fpc] Kompilieren" #utils/fpcm/fpcmake -Tall -r >>${LOGS}/fpc.log || exit -1 # Hindweis: Die folgende Anweisung wird nicht erfolgreich beendet werden, aber der Crosscompiler steht danach zur Verfuegung -make all CPU_TARGET=i386 OS_TARGET=linux >>${LOGS}/fpc.log 2>>${LOGS}/fpc.log +${TMP}/make/build/bin/make all CPU_TARGET=i386 OS_TARGET=linux >>${LOGS}/fpc.log 2>>${LOGS}/fpc.log test -f compiler/ppc386 || die "Fehler beim Kompilieren. \nSiehe tmp/fpc.log für Details." echo "[fpc] Installieren" #make compiler-install PREFIX=${PREFIX} CPU_TARGET=i386 OS_TARGET=lost >>${LOGS}/fpc.log || exit -1 -- 1.7.6 -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zurück-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From DoBi-tyndur at gmx.net Sat Aug 13 22:07:46 2011 From: DoBi-tyndur at gmx.net (Dominik Bittner) Date: Sat, 13 Aug 2011 22:07:46 +0200 Subject: [tyndur-devel] [lbuilds] GMP, Mpfr und Mpc + GMP-5.0.2 + Mpfr-3.0.1 + Mpc-0.9 Message-ID: <20110813200746.183140@gmx.net> From DoBi-tyndur at gmx.net Sun Aug 14 00:01:31 2011 From: DoBi-tyndur at gmx.net (Dominik Bittner) Date: Sun, 14 Aug 2011 00:01:31 +0200 Subject: [PATCH] [lbuilds] GMP, Mpfr und Mpc + GMP-5.0.2 + Mpfr-3.0.1 + Mpc-0.9 Signed-off-by: Dominik Bittner Message-ID: --- lbuilds/gmp/5.0.2/gmp-5.0.2.lbuild | 36 +++++++++++++++++++++++++++ lbuilds/gmp/5.0.2/patches/config.patch | 12 +++++++++ lbuilds/gmp/5.0.2/patches/series | 1 + lbuilds/mpc/0.9/mpc-0.9.lbuild | 37 ++++++++++++++++++++++++++++ lbuilds/mpc/0.9/patches/config.patch | 12 +++++++++ lbuilds/mpc/0.9/patches/series | 1 + lbuilds/mpfr/3.0.1/mpfr-3.0.1.lbuild | 36 +++++++++++++++++++++++++++ lbuilds/mpfr/3.0.1/patches/config.patch | 12 +++++++++ lbuilds/mpfr/3.0.1/patches/mpfr-impl.patch | 12 +++++++++ lbuilds/mpfr/3.0.1/patches/series | 2 + 10 files changed, 161 insertions(+), 0 deletions(-) create mode 100644 lbuilds/gmp/5.0.2/gmp-5.0.2.lbuild create mode 100644 lbuilds/gmp/5.0.2/patches/config.patch create mode 100644 lbuilds/gmp/5.0.2/patches/series create mode 100644 lbuilds/mpc/0.9/mpc-0.9.lbuild create mode 100644 lbuilds/mpc/0.9/patches/config.patch create mode 100644 lbuilds/mpc/0.9/patches/series create mode 100644 lbuilds/mpfr/3.0.1/mpfr-3.0.1.lbuild create mode 100644 lbuilds/mpfr/3.0.1/patches/config.patch create mode 100644 lbuilds/mpfr/3.0.1/patches/mpfr-impl.patch create mode 100644 lbuilds/mpfr/3.0.1/patches/series diff --git a/lbuilds/gmp/5.0.2/gmp-5.0.2.lbuild b/lbuilds/gmp/5.0.2/gmp-5.0.2.lbuild new file mode 100644 index 0000000..5d949ea --- /dev/null +++ b/lbuilds/gmp/5.0.2/gmp-5.0.2.lbuild @@ -0,0 +1,36 @@ +include lutils +include toolchain + +DESCRIPTION="Tools necessary to build programs" +HOMEPAGE="http://lowlevel.brainsware.org/wiki/index.php/LOST/Pakete/gmp" +SRC_URI="http://ftp.gnu.org/gnu/gmp/${P}.tar.bz2" + +LICENSE="GPL-2" + +BUILD_DEPEND="" +RUN_DEPEND="" + +MY_S="${S}/${P}" + +src_compile() { + cd ${MY_S} + ./configure \ + --build=`tc-build` \ + --host=`tc-host` \ + --prefix=${R} \ + --disable-cxx \ + || die "configure failed" + + lmake || die "make failed" + cd .. +} + +src_install() { + cd ${MY_S} + lmake DESTDIR="${D}" install || die "make install failed" + + cd "${D}/${R}" + + # Sonst funktioniert mpc nicht + rm lib/*.la +} diff --git a/lbuilds/gmp/5.0.2/patches/config.patch b/lbuilds/gmp/5.0.2/patches/config.patch new file mode 100644 index 0000000..0b86847 --- /dev/null +++ b/lbuilds/gmp/5.0.2/patches/config.patch @@ -0,0 +1,12 @@ +diff -urN src.orig/gmp-5.0.2//configfsf.sub src/gmp-5.0.2//configfsf.sub +--- src.orig/gmp-5.0.2//configfsf.sub 2011-05-08 11:49:29.000000000 +0200 ++++ src/gmp-5.0.2//configfsf.sub 2011-08-13 00:04:26.000000000 +0200 +@@ -1346,7 +1346,7 @@ + | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ + | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ + | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ +- | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*) ++ | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* | -tyndur*) + # Remember, each alternative MUST END IN *, to match a version number. + ;; + -qnx*) diff --git a/lbuilds/gmp/5.0.2/patches/series b/lbuilds/gmp/5.0.2/patches/series new file mode 100644 index 0000000..4462183 --- /dev/null +++ b/lbuilds/gmp/5.0.2/patches/series @@ -0,0 +1 @@ +config.patch diff --git a/lbuilds/mpc/0.9/mpc-0.9.lbuild b/lbuilds/mpc/0.9/mpc-0.9.lbuild new file mode 100644 index 0000000..f5d19a9 --- /dev/null +++ b/lbuilds/mpc/0.9/mpc-0.9.lbuild @@ -0,0 +1,37 @@ +include lutils +include toolchain + +DESCRIPTION="Tools necessary to build programs" +HOMEPAGE="http://lowlevel.brainsware.org/wiki/index.php/LOST/Pakete/mpc" +SRC_URI="http://www.multiprecision.org/mpc/download/${P}.tar.gz" + +LICENSE="GPL-2" + +BUILD_DEPEND="=gmp-5.0.2 =mpfr-3.0.1" +RUN_DEPEND="" + +MY_S="${S}/${P}" + +src_compile() { + cd ${MY_S} + ./configure \ + --build=`tc-build` \ + --host=`tc-host` \ + --prefix=${R} \ + --with-gmp=${S}/../env \ + --with-mpfr=${S}/../env \ + || die "configure failed" + + lmake || die "make failed" + cd .. +} + +src_install() { + cd ${MY_S} + lmake DESTDIR="${D}" install || die "make install failed" + + cd "${D}/${R}" + + # Weißt auf das falsche Verzeichnis + rm lib/*.la +} diff --git a/lbuilds/mpc/0.9/patches/config.patch b/lbuilds/mpc/0.9/patches/config.patch new file mode 100644 index 0000000..6827301 --- /dev/null +++ b/lbuilds/mpc/0.9/patches/config.patch @@ -0,0 +1,12 @@ +diff -urN src.orig/mpc-0.9//config.sub src/mpc-0.9//config.sub +--- src.orig/mpc-0.9//config.sub 2011-01-18 14:09:45.000000000 +0100 ++++ src/mpc-0.9//config.sub 2011-08-13 23:21:10.000000000 +0200 +@@ -1309,7 +1309,7 @@ + | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ + | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ + | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ +- | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*) ++ | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* | -tyndur*) + # Remember, each alternative MUST END IN *, to match a version number. + ;; + -qnx*) diff --git a/lbuilds/mpc/0.9/patches/series b/lbuilds/mpc/0.9/patches/series new file mode 100644 index 0000000..4462183 --- /dev/null +++ b/lbuilds/mpc/0.9/patches/series @@ -0,0 +1 @@ +config.patch diff --git a/lbuilds/mpfr/3.0.1/mpfr-3.0.1.lbuild b/lbuilds/mpfr/3.0.1/mpfr-3.0.1.lbuild new file mode 100644 index 0000000..8d85a18 --- /dev/null +++ b/lbuilds/mpfr/3.0.1/mpfr-3.0.1.lbuild @@ -0,0 +1,36 @@ +include lutils +include toolchain + +DESCRIPTION="Tools necessary to build programs" +HOMEPAGE="http://lowlevel.brainsware.org/wiki/index.php/LOST/Pakete/mpfr" +SRC_URI="http://www.mpfr.org/mpfr-current/${P}.tar.bz2" + +LICENSE="GPL-2" + +BUILD_DEPEND="=gmp-5.0.2" +RUN_DEPEND="" + +MY_S="${S}/${P}" + +src_compile() { + cd ${MY_S} + ./configure \ + --build=`tc-build` \ + --host=`tc-host` \ + --prefix=${R} \ + --with-gmp=${S}/../env/ \ + || die "configure failed" + + lmake || die "make failed" + cd .. +} + +src_install() { + cd ${MY_S} + lmake DESTDIR="${D}" install || die "make install failed" + + cd "${D}/${R}" + + # Sonst funktioniert mpc nicht. + rm lib/*.la +} diff --git a/lbuilds/mpfr/3.0.1/patches/config.patch b/lbuilds/mpfr/3.0.1/patches/config.patch new file mode 100644 index 0000000..a6d6747 --- /dev/null +++ b/lbuilds/mpfr/3.0.1/patches/config.patch @@ -0,0 +1,12 @@ +diff -urN src.orig/mpfr-3.0.1//config.sub src/mpfr-3.0.1//config.sub +--- src.orig/mpfr-3.0.1//config.sub 2011-04-04 12:19:46.000000000 +0200 ++++ src/mpfr-3.0.1//config.sub 2011-08-13 23:10:00.000000000 +0200 +@@ -1309,7 +1309,7 @@ + | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ + | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ + | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ +- | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*) ++ | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* | -tyndur* ) + # Remember, each alternative MUST END IN *, to match a version number. + ;; + -qnx*) diff --git a/lbuilds/mpfr/3.0.1/patches/mpfr-impl.patch b/lbuilds/mpfr/3.0.1/patches/mpfr-impl.patch new file mode 100644 index 0000000..3711ee4 --- /dev/null +++ b/lbuilds/mpfr/3.0.1/patches/mpfr-impl.patch @@ -0,0 +1,12 @@ +diff -urN src.orig/mpfr-3.0.1//mpfr-impl.h src/mpfr-3.0.1//mpfr-impl.h +--- src.orig/mpfr-3.0.1//mpfr-impl.h 2011-04-04 12:19:18.000000000 +0200 ++++ src/mpfr-3.0.1//mpfr-impl.h 2011-08-13 23:16:56.000000000 +0200 +@@ -633,7 +633,7 @@ + # define mp_exp_unsigned_t mpfr_uexp_t + #endif + +-#if MPFR_EXP_MIN >= LONG_MIN && MPFR_EXP_MAX <= LONG_MAX ++#if 1 >= 0 && 0 <= 1 + typedef long int mpfr_eexp_t; + # define mpfr_get_exp_t(x,r) mpfr_get_si((x),(r)) + # define mpfr_set_exp_t(x,e,r) mpfr_set_si((x),(e),(r)) diff --git a/lbuilds/mpfr/3.0.1/patches/series b/lbuilds/mpfr/3.0.1/patches/series new file mode 100644 index 0000000..c5e8242 --- /dev/null +++ b/lbuilds/mpfr/3.0.1/patches/series @@ -0,0 +1,2 @@ +config.patch +mpfr-impl.patch -- 1.7.6 -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zurück-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From kevin at tyndur.org Fri Aug 26 23:27:37 2011 From: kevin at tyndur.org (Kevin Wolf) Date: Fri, 26 Aug 2011 23:27:37 +0200 Subject: [tyndur-devel] =?utf-8?q?=5BPATCH=5D_kbc=3A_Maus-Initialisierung_?= =?utf-8?q?mit_p/v_sch=C3=BCtzen?= Message-ID: <1314394057-8365-1-git-send-email-kevin@tyndur.org> ! kbc: Der Maustreiber hat während seiner Initialisierung leider ständig das Race mit dem Tastaturtreiber verloren. Und der hat dann der Maus die Daten geklaut, so dass der Maustreiber in ein Timeout gerannt ist, weil er auf genau diese Daten gewartet hat. Signed-off-by: Kevin Wolf --- src/modules/kbc/mouse.c | 13 ++++++++----- 1 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/modules/kbc/mouse.c b/src/modules/kbc/mouse.c index 32c4e60..8c07e8f 100644 --- a/src/modules/kbc/mouse.c +++ b/src/modules/kbc/mouse.c @@ -120,11 +120,13 @@ uint8_t mouse_read() void mouse_install() { uint8_t _status; - + + p(); + //Mauscontroller aktivieren mouse_wait(1); outb(0x64, 0xA8); - + //Interrupts aktivieren mouse_wait(1); outb(0x64, 0x20); @@ -134,15 +136,16 @@ void mouse_install() outb(0x64, 0x60); mouse_wait(1); outb(0x60, _status); - + //Standardeinstellungen der Maus auswählen mouse_write(0xF6); mouse_read(); - + //Maus aktivieren mouse_write(0xF4); mouse_read(); - + + v(); mouse_cycle = 0; } -- 1.7.1