NI-Buildsystem (HD51 Support)

Benutzeravatar
vanhofen
Administrator
Beiträge: 2924
Registriert: Di 5. Apr 2016, 00:05
Has thanked: 2 times
Been thanked: 10 times

Re: NI-Buildsystem (HD51 Support)

Beitrag von vanhofen »

Ich habe unser libstb-hal-Repository umbenannt. Aus "ni-libstb-hal-next" wurde "ni-libstb-hal".
Ihr müsst deswegen etwas Hand anlegen und folgende Befehle im Buildsystem ausführen:

Code: Alles auswählen

rm -rf source/ni-libstb-hal-next
rm -rf source/ni-libstb-hal
make preqs
Vielen Dank. :)
Benutzeravatar
Janus
NI - VIP
Beiträge: 1138
Registriert: Di 12. Apr 2016, 19:41
Box: HD1, Zee, Neo, Tank, HD51, Duo4K

Re: NI-Buildsystem (HD51 Support)

Beitrag von Janus »

Da hat's kleines Problem:
Bereits aktuell.
Bereits auf 'ni/ffmpeg/2.8'
Ihr Branch ist auf dem selben Stand wie 'origin/ni/ffmpeg/2.8'.
set -e; cd /home/janus/development/ni/build/source/ni-libstb-hal; git pull
Bereits aktuell.
set -e; cd /home/janus/development/ni/build/source/ni-linux-kernel; git pull --all; git checkout ni/linux-4.10.12
Fordere an von origin
Fordere an von upstream
Fordere an von torvalds
<<<<<<<<<<<<
Ihre Konfiguration gibt an, den Merge mit Referenz 'refs/heads/ni/4.10.x'
des Remote-Repositories durchzuführen, aber diese Referenz
wurde nicht angefordert.
>>>>>>>>>>>>
make/update.mk:47: die Regel für Ziel „update-ni-sources“ scheiterte
make[1]: *** [update-ni-sources] Fehler 1
make/update.mk:63: die Regel für Ziel „update-ni“ scheiterte
make: *** [update-ni] Fehler 2
Benutzeravatar
vanhofen
Administrator
Beiträge: 2924
Registriert: Di 5. Apr 2016, 00:05
Has thanked: 2 times
Been thanked: 10 times

Re: NI-Buildsystem (HD51 Support)

Beitrag von vanhofen »

Bitte einmal das Kernel-Repo löschen und neu clonen.

rm -rf source/ni-linux-kernel
make preqs

Alternativ kannst du auch source/ni-linux-kernel/.git/config bearbeiten:

Code: Alles auswählen

-	merge = refs/heads/ni/4.10.x
+	merge = refs/heads/ni/linux-4.10.12
satbaby
NI - VIP
Beiträge: 540
Registriert: Di 12. Apr 2016, 13:02

Re: NI-Buildsystem (HD51 Support)

Beitrag von satbaby »

@Sven
Ich muss neutrino bauen und das kam.
Kannst du das weg machen?
remote: Repository not found.
fatal: Authentication failed for 'https://github.com/maxwiesel/libstb-hal-max.git/'
error: Could not fetch max
gruß
Benutzeravatar
vanhofen
Administrator
Beiträge: 2924
Registriert: Di 5. Apr 2016, 00:05
Has thanked: 2 times
Been thanked: 10 times

Re: NI-Buildsystem (HD51 Support)

Beitrag von vanhofen »

Ich kann das nicht nachträglich entfernen. Da muss du händisch ran.

Code: Alles auswählen

git remote remove max
Das muss im neutrino-Repo und im libstb-hal-Repo gemacht werden. Im Buildsystem werde ich es entfernen, da Max seine Repos ja doch recht oft offline schaltet, dann haben es neue Clones wenigstens nicht mehr mit drin.
satbaby
NI - VIP
Beiträge: 540
Registriert: Di 12. Apr 2016, 13:02

Re: NI-Buildsystem (HD51 Support)

Beitrag von satbaby »

Das kommt mir bekannt vor:
fi
[ -z "" ] || arm-cortex-linux-gnueabihf-gcc -fPIC -DOPENSSL_PIC -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -pipe -O2 -g -march=armv7ve -mtune=cortex-a15 -mfpu=neon-vfpv4 -mfloat-abi=hard -I/home/hp/ni-buildsystem/root/include -DTERMIOS -fomit-frame-pointer -DOPENSSL_SMALL_FOOTPRINT -O2 -Wall -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DAES_ASM -DBSAES_ASM -DGHASH_ASM -Iinclude \
-DFINGERPRINT_PREMAIN_DSO_LOAD -o fips_premain_dso \
fips_premain.c fipscanister.o \
libcrypto.a -lcortex-strings -Wl,-O1 -Wl,-rpath,/home/hp/ni-buildsystem/root/lib -Wl,-rpath-link,/home/hp/ni-buildsystem/root/lib -L/home/hp/ni-buildsystem/root/lib -ldl
/home/hp/ni-buildsystem/cross/arm-linux-4.10.12/lib/gcc/arm-cortex-linux-gnueabihf/6.5.0/../../../../arm-cortex-linux-gnueabihf/bin/ld: cannot find -lcortex-strings
collect2: error: ld returned 1 exit status
make[6]: *** [Makefile.shared:169: link_a.gnu] Error 1
make[5]: *** [Makefile:358: do_linux-shared] Error 2
make[4]: *** [Makefile:311: libcrypto.so.1.0.0] Error 2
make[3]: *** [Makefile:111: shared] Error 2
make[2]: *** [Makefile:288: build_crypto] Error 1
make[1]: *** [make/target-libs.mk:343: openssl] Error 2
make: *** [make/ni.mk:30: image] Error 2

Wieso habe ich es nur?
gruß
Benutzeravatar
vanhofen
Administrator
Beiträge: 2924
Registriert: Di 5. Apr 2016, 00:05
Has thanked: 2 times
Been thanked: 10 times

Re: NI-Buildsystem (HD51 Support)

Beitrag von vanhofen »

Code: Alles auswählen

make clean
und nochmal bauen. Mir ist das bekannt, ich hatte es nur immer wieder vergessen. ^^
satbaby
NI - VIP
Beiträge: 540
Registriert: Di 12. Apr 2016, 13:02

Re: NI-Buildsystem (HD51 Support)

Beitrag von satbaby »

Image hat es gebaut.
Das musste ich noch patchen bei mir:

Code: Alles auswählen

diff --git a/make/target-libs.mk b/make/target-libs.mk
index 0f9fde6..c13ddc1 100644
--- a/make/target-libs.mk
+++ b/make/target-libs.mk
@@ -963,8 +963,6 @@ $(ARCHIVE)/$(LIBTIRPC_SOURCE):
 
 LIBTIRP_PATCH  = 0001-Disable-parts-of-TIRPC-requiring-NIS-support.patch
 LIBTIRP_PATCH += 0002-uClibc-without-RPC-support-and-musl-does-not-install-rpcent.h.patch
-LIBTIRP_PATCH += 0003-Automatically-generate-XDR-header-files-from-.x-sour.patch
-LIBTIRP_PATCH += 0004-Add-more-XDR-files-needed-to-build-rpcbind-on-top-of.patch
 LIBTIRP_PATCH += 0005-Disable-DES-authentification-support.patch
 LIBTIRP_PATCH += 0006-rpc-types.h-fix-musl-build.patch
 
diff --git a/make/target-tools.mk b/make/target-tools.mk
index a8dfd9d..be9b328 100644
--- a/make/target-tools.mk
+++ b/make/target-tools.mk
@@ -522,6 +522,7 @@ djmount: $(DJMOUNT_DEPS) $(ARCHIVE)/$(DJMOUNT_SOURCE) | $(TARGET_DIR)
 	$(CHDIR)/$(DJMOUNT_TMP); \
 		$(call apply_patches, $(DJMOUNT_PATCH)); \
 		touch libupnp/config.aux/config.rpath; \
+		sed -i configure.ac -e 's@AM_LANGINFO_CODESET@@'; \
 		autoreconf -fi; \
 		$(CONFIGURE) -C \
 			--prefix= \
@@ -821,7 +822,6 @@ e2fsprogs: $(ARCHIVE)/$(E2FSPROGS_SOURCE) | $(TARGET_DIR)
 	$(REMOVE)/$(E2FSPROGS_TMP)
 	$(UNTAR)/$(E2FSPROGS_SOURCE)
 	$(CHDIR)/$(E2FSPROGS_TMP); \
-		autoreconf -fi; \
 		$(CONFIGURE) \
 			--target=$(TARGET) \
 			--prefix=/ \
gruß
Antworten

Zurück zu „Entwicklung“