Helge Deller wrote...

> On 18.01.2017 20:40, Adrian Bunk wrote:
> > Package: palo
> ...
> > If palo should continue to be available on non-hppa machines,
> > a (binary-all) package that uses gcc-hppa-linux-gnu for building
> > might be an option.
> 
> I'll check if it's possile. May take some time.

As my hppa machine still suffers from systemd's assertion failure[0], I
cannot test the result of the changes attached below, or compare with
the result of a build on native hardware.

However, after applying palo builds on amd64 and produces an iplboot of
the same size but with partially different content. Helge, might want to
burn one your boxes trying out? :-)

    Christoph

[0] https://lists.debian.org/debian-hppa/2014/09/msg00025.html

diff --git a/debian/control b/debian/control
index a31c4d5..6063f68 100644
--- a/debian/control
+++ b/debian/control
@@ -3,7 +3,7 @@ Section: admin
 Priority: optional
 Maintainer: Helge Deller <del...@gmx.de>
 Uploaders:
-Build-Depends: debhelper (>= 9), lynx
+Build-Depends: debhelper (>= 9), lynx, gcc-hppa-linux-gnu, libc6-dev-hppa-cross
 Standards-Version: 3.9.5
 Homepage: http://git.kernel.org/cgit/linux/kernel/git/deller/palo.git
 Vcs-Browser: http://git.kernel.org/cgit/linux/kernel/git/deller/palo.git
diff --git a/debian/rules b/debian/rules
index 0b99f7b..1ac9cdd 100755
--- a/debian/rules
+++ b/debian/rules
@@ -10,14 +10,9 @@ override_dh_auto_clean:
        # when building on hppa machines only. This way, palo
        # can also be built on non-hppa build hosts without
        # problems using the pre-built iplboot binary.
-       @if [ `dpkg --print-architecture` = hppa ]; \
-        then \
-               echo "Regenerating iplboot."; \
-               $(MAKE) realclean; \
-               $(MAKE) iplboot; \
-        else \
-               echo "Leaving iplboot in place since we're not building on 
hppa."; \
-        fi
+       echo "Regenerating iplboot."; \
+       $(MAKE) realclean; \
+       $(MAKE) iplboot; \
 
 %:
        dh $@
diff --git a/ipl/Makefile b/ipl/Makefile
index 6b8e105..02f5a8b 100644
--- a/ipl/Makefile
+++ b/ipl/Makefile
@@ -27,7 +27,7 @@ CROSS_COMPILE := $(call cc-cross-prefix, \
 
 CC     = ${CROSS_COMPILE}gcc
 AR     = ar
-LD     = ld
+LD     = ${CROSS_COMPILE}ld
 
 ifneq ("$(wildcard /etc/debian_version)","")
 BLDINFO := $(shell echo http://www.parisc-linux.org - `dpkg-parsechangelog 
-l../debian/changelog -SDate`)

Attachment: signature.asc
Description: Digital signature

Reply via email to