Ubuntu18.04编译S3的Linux SDK(Zeta)

按照S3官方Wiki(http://www.sochip.com.cn/s3)的陈述,推荐使用Ubuntu16.04作为Host端系统,笔者是一名乐于并热衷于尝鲜的搬砖工,于是,尝试在最新的18.04上进行编译和构建S3平台的Linux开发包。以下是操作的完整过程,并不顺利,但以成功告终。

安装Ubuntu18.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/-noman.patch
deleted: package/automake/automake.hash
modified: package/automake/automake.mk
deleted: package/e2fsprogs/-sem-init-libs.patch
deleted: package/e2fsprogs/-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
--- a/package/automake/automake.mk
+++ b/package/automake/automake.mk
@@ -, +, @@
#
################################################################################ -AUTOMAKE_VERSION = 1.15
+AUTOMAKE_VERSION = 1.16.
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
--- a/package/e2fsprogs/e2fsprogs.mk
+++ b/package/e2fsprogs/e2fsprogs.mk
@@ -, +, @@
#
################################################################################ -E2FSPROGS_VERSION = 1.43.
+E2FSPROGS_VERSION = 1.44.
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的编译方法进行编译即可。

上一篇:一些简单的例子让你在Java中能更好的学习并理解循环结构(1)!


下一篇:C语言之linux内核--BCD码转二进制与二进制转BCD码(笔试经典)