Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

About The best CFLAGS for longson2f?

13 views
Skip to first unread message

Wu Zhangjin

unread,
Nov 14, 2009, 3:10:39 AM11/14/09
to loongson-dev, 黑孩儿, zenglanmu
Hi, All

Archlinux is a lightweight GNU/Linux distribution, which is optimized
for x86 system.

Now, I plan to build it for loongson2f, here is my plan:

1. build a basic system from scratch via lfs.

gcc 4.4.2, binutils 2.20 with the patch from Lemote, .... no X this
time.

2. build abs, pacman, srcpac for loongson2f

abs the basic building system of archlinux, pacman is the package
management tool, srcpac will help to install a package from source
code(something like the emerge from gentoo).

3. build the core packages for loongson2f

use abs to pull the whole source code directories and build the core
packages(and perhaps I need to build a local mirror). perhaps we can use
srcpac to build them directly. I need to find a automatical tool too.

Herein, I must find a suitable version of Xorg to ensure it work on
loongson2f, and also, anybody tried the tinyX? does it work on
loongson2f? and I plan to use lxde + openbox.

4. build the other important packages

....

Now, It's time to do the first job, to get a higher performance? which
CLFAGS we need to use?

looking forward to your reply!

Regards,
Wu Zhangjin


Wu Zhangjin

unread,
Nov 14, 2009, 4:23:27 AM11/14/09
to loongson-dev, 黑孩儿, zenglanmu, Zhang Le, Liu Shiwei
On Sat, 2009-11-14 at 16:11 +0800, Wu Zhangjin wrote:
> Hi, All
>
> Archlinux is a lightweight GNU/Linux distribution, which is optimized
> for x86 system.
>
> Now, I plan to build it for loongson2f, here is my plan:
>
> 1. build a basic system from scratch via lfs.
>
> gcc 4.4.2, binutils 2.20 with the patch from Lemote, .... no X this
> time.
>
> 2. build abs, pacman, srcpac for loongson2f
>
> abs the basic building system of archlinux, pacman is the package
> management tool, srcpac will help to install a package from source
> code(something like the emerge from gentoo).
>
> 3. build the core packages for loongson2f
>
> use abs to pull the whole source code directories and build the core
> packages(and perhaps I need to build a local mirror). perhaps we can use
> srcpac to build them directly. I need to find a automatical tool too.
>
> Herein, I must find a suitable version of Xorg to ensure it work on
> loongson2f, and also, anybody tried the tinyX? does it work on
> loongson2f? and I plan to use lxde + openbox.
>

about Xorg, Seems only the following packages are needed for YeeLoong
netbook(Information from heihaier), record it here:

xserver-xorg
xserver-xorg-core
xserver-xorg-input-all
xserver-xorg-input-evdev
xserver-xorg-input-kbd
xserver-xorg-input-mouse
xserver-xorg-input-synaptics
xserver-xorg-input-wacom
xserver-xorg-video-fbdev

Wu Zhangjin

unread,
Nov 14, 2009, 4:29:23 AM11/14/09
to loongson-dev, 黑孩儿, zenglanmu, Zhang Le, Liu Shiwei, archlinux-f...@googlegroups.com
On Sat, 2009-11-14 at 17:24 +0800, Wu Zhangjin wrote:
> On Sat, 2009-11-14 at 16:11 +0800, Wu Zhangjin wrote:
> > Hi, All
> >
> > Archlinux is a lightweight GNU/Linux distribution, which is optimized
> > for x86 system.
> >
> > Now, I plan to build it for loongson2f, here is my plan:
> >
> > 1. build a basic system from scratch via lfs.
> >
> > gcc 4.4.2, binutils 2.20 with the patch from Lemote, .... no X this
> > time.
> >
> > 2. build abs, pacman, srcpac for loongson2f
> >
> > abs the basic building system of archlinux, pacman is the package
> > management tool, srcpac will help to install a package from source
> > code(something like the emerge from gentoo).
> >
> > 3. build the core packages for loongson2f
> >
> > use abs to pull the whole source code directories and build the core
> > packages(and perhaps I need to build a local mirror). perhaps we can use
> > srcpac to build them directly. I need to find a automatical tool too.

Just found a such tool, named pacbuilder, is available in the AUR of
archlinux, we can install it via yaourt.

Zhang Le

unread,
Nov 14, 2009, 9:08:42 AM11/14/09
to loongson-dev
The following two is not needed in latest xorg-server.
evdev is enough

Ruan Beihong

unread,
Nov 14, 2009, 10:35:49 AM11/14/09
to loongs...@googlegroups.com
Just refer to the manual page of gcc.
-march=loongson2f -O3 should work.
BTW, I'm away from the 2F system for a long time.

2009/11/14 Zhang Le <r0b...@gentoo.org>



--
James Ruan
Reply all
Reply to author
Forward
0 new messages