首頁 > 軟體

Ubuntu 18.04編譯S3的Linux SDK(Zeta)

2020-06-16 16:52:21

按照S3官方Wiki的陳述,推薦使用Ubuntu 16.04作為Host端系統,筆者是一名樂於並熱衷於嘗鮮的搬磚工,於是,嘗試在最新的18.04上進行編譯和構建S3平台的Linux開發包。以下是操作的完整過程,並不順利,但以成功告終。

安裝Ubuntu 18.04作業系統 ,安裝下面的軟體包:

sudo apt-get install git-core gnupg flex bison gperf build-essential
 zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386
 lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z-dev ccache
 libgl1-mesa-dev libxml2-utils xsltproc unzip u-boot-tools gawk samba

編譯buildroot過程中,會出現若干來自於buildroot packages與Ubuntu18.04自帶的工具/包衝突的錯誤,以下buildroot修補程式可處理掉這些錯誤。

Changes not staged for commit:
  (use "git add/rm <file>..." to update what will be committed)
  (use "git checkout -- <file>..." to discard changes in working directory)

    deleted:    package/automake/0001-noman.patch
    deleted:    package/automake/automake.hash
    modified:  package/automake/automake.mk
    deleted:    package/e2fsprogs/0001-sem-init-libs.patch
    deleted:    package/e2fsprogs/0002-MCONFIG.in-handle-CLOCK_GETTIME_LIB.patch
    deleted:    package/e2fsprogs/e2fsprogs.hash
    modified:  package/e2fsprogs/e2fsprogs.mk

diff --git a/package/automake/automake.mk b/package/automake/automake.mk
index 84f05dc..928a33f 100644
--- a/package/automake/automake.mk
+++ b/package/automake/automake.mk
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-AUTOMAKE_VERSION = 1.15
+AUTOMAKE_VERSION = 1.16.1
 AUTOMAKE_SOURCE = automake-$(AUTOMAKE_VERSION).tar.xz
 AUTOMAKE_SITE = $(BR2_GNU_MIRROR)/automake
 AUTOMAKE_LICENSE = GPLv2+

diff --git a/package/e2fsprogs/e2fsprogs.mk b/package/e2fsprogs/e2fsprogs.mk
index b6e79d2..8a4edc8 100644
--- a/package/e2fsprogs/e2fsprogs.mk
+++ b/package/e2fsprogs/e2fsprogs.mk
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-E2FSPROGS_VERSION = 1.43.3
+E2FSPROGS_VERSION = 1.44.1
 E2FSPROGS_SOURCE = e2fsprogs-$(E2FSPROGS_VERSION).tar.xz
 E2FSPROGS_SITE = $(BR2_KERNEL_MIRROR)/linux/kernel/people/tytso/e2fsprogs/v$(E2FSPROGS_VERSION)
 E2FSPROGS_LICENSE = GPLv2, libuuid BSD-3c, libss and libet MIT-like with advertising clause

完成上述修改以後,按照S3 Linux SDK的編譯方法進行編譯即可。

本文永久更新連結地址https://www.linuxidc.com/Linux/2018-05/152209.htm


IT145.com E-mail:sddin#qq.com