Details
Description
I copy "linux-generic-g+" to new one named "linux-nds32-g+"
mkspecs/qws/linux-generic-g++/qmake.conf
Add the following.
include(../../common/g++.conf)
include(../../common/linux.conf)
include(../../common/qws.conf)
- modifications to g++.conf
QMAKE_CC = nds32le-linux-gcc -EL -G0 -Wa,-mno-small-data
QMAKE_CXX = nds32le-linux-g++ -EL -G0 -Wa,-mno-small-data
QMAKE_LINK = nds32le-linux-g++ -EL -G0 -Wa,-mno-small-data
QMAKE_LINK_SHLIB = nds32le-linux-g++ -EL -G0 -Wa,-mno-small-data
- modifications to linux.conf
QMAKE_AR = nds32le-linux-ar cqs
QMAKE_OBJCOPY = nds32le-linux-objcopy
QMAKE_STRIP = nds32le-linux-strip
Add src/corelib/io/qfilesystemwatcher_inotify.cpp
#elif defined (_nds32_)
- define __NR_inotify_init 291
- define __NR_inotify_add_watch 292
- define __NR_inotify_rm_watch 293
The most difficult one is the ALWAYS_INLINE attribute
in file src/3rdparty/webkit/JavaScriptCore/wtf/AlwaysInline.h
Should look like the following when (_nds32_) is defined
#ifndef ALWAYS_INLINE
//#if COMPILER(GCC) && defined(NDEBUG) && !COMPILER(MINGW)
//#define ALWAYS_INLINE inline _attribute_ ((_always_inline_))
#if COMPILER(MSVC) && defined(NDEBUG)
#define ALWAYS_INLINE __forceinline
#else
#define ALWAYS_INLINE inline
#endif
#endif
Help support new platform "Andestech"(nds32) platform
The company web page
http://www.andestech.com/
OSDK Web Page
http://osdk.andestech.com/