Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-12659

Support new platform "Andestech" Platform

    XMLWordPrintable

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)

      1. 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
      1. 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_)

      1. define __NR_inotify_init 291
      2. define __NR_inotify_add_watch 292
      3. 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/

      Attachments

        1. AlwaysInline.h
          2 kB
        2. mkspecs.tar.gz
          1 kB
        3. qfilesystemwatcher_inotify.cpp
          12 kB

        Activity

          People

            w00t Robin Burchell
            thomasysliu Thomas YS Liu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1 hour
                1h
                Remaining:
                Remaining Estimate - 1 hour
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified