Hi Amitesh,
/usr/lib/python2.7/dist-packages/gitbuildsys/cmd_build.py implements 'gbs
build' command.
The snippet shows that supported <archs> are hardcoded into the tool.
If you need a support for your <arch> you have to implement a support into the
tool.
It is not enough to add your arch to the list. You need compilers, libc and so
on.
--- cmd_build.py ---
SUPPORTEDARCHS = [
'x86_64',
'i586',
'armv6l',
'armv7hl',
'armv7l',
]
# These two dicts maping come from osc/build.py
CAN_ALSO_BUILD = {
'armv7l' :['armv4l', 'armv5l', 'armv6l', 'armv7l', 'armv5el',
'armv6el', 'armv7el'],
'armv7el':['armv4l', 'armv5l', 'armv6l', 'armv7l', 'armv5el',
'armv6el', 'armv7el'],
'armv8l' :['armv4l', 'armv5el', 'armv6el', 'armv7el', 'armv8el' ],
'i586' :['i586', 'i386'],
'i686' :['i686', 'i586', 'i386',],
'x86_64' :['x86_64', 'i686', 'i586', 'i386'],
}
QEMU_CAN_BUILD = ['armv4l', 'armv5el', 'armv5l', 'armv6l', 'armv7l',
'armv6el', 'armv7el', 'armv7hl', 'armv8el', 'sh4', 'mips',
'mipsel', 'ppc', 'ppc64', 's390', 's390x', 'sparc64v',
'sparcv9v', 'sparcv9', 'sparcv8', 'sparc', 'hppa'
]
……….
Br,
Pasi
On May 3, 2013, at 9:57 AM, Amitesh Singh <[email protected]> wrote:
> Hi Li,
>
> Thanks for the reply. I have created myarch in .../base/ folder and run
> "createrepo ." but gbs still throws error that myarch is not supported.
> I dig more into gbs code and it has a check for supported archs which is
> defined in "/usr/lib/python2.7/dist-packages/gitbuildsys/cmd_build.py"
> (variable name: SUPPORTEDARCHS). I added 'myarch' there and at some places as
> well.
>
>
> gbs -v build -A myarch -D /var/tmp/ami-gbs/tizen2.0.conf
> info: generate repositories ...
> debug: running command: linux32 depanneur --arch=myarch
> --repository=/home/ami/tizen_repo/base/
> --repository=/home/ami/tizen_repo/ivi/ --dist=tizen2.0
> --configdir=/var/tmp/ami-gbs --path=/home/ami/tizen/tizen/tools/depanneur
> --threads=1 --packaging-dir=packaging --upstream-branch=upstream
> error: myarch not support
> error: Traceback (most recent call last):
> File "/usr/bin/gbs", line 519, in <module>
> sys.exit(main(sys.argv))
> File "/usr/bin/gbs", line 513, in main
> return module.main(args)
> File "/usr/lib/python2.7/dist-packages/gitbuildsys/cmd_build.py", line 311,
> in main
> raise GbsError('rpmbuild fails')
> GbsError: <gbs>rpmbuild fails
>
>
> My local repo:
> $:~/tizen_repo/base$ ls
> i586 i686 myarch noarch repodata
>
> Thanks
> Amitesh
>
>
>
> From: [email protected]
> To: [email protected]; [email protected]; [email protected]
> Subject: RE: [Tizen General] How to build a 'not yet supported' arch with gbs?
> Date: Fri, 3 May 2013 06:49:15 +0000
>
> Supposedly the build arch is decided by repo on ~/.gbs.conf
> For example,
> http://download.tizen.org/snapshots/2.0/common/tizen-2.0_20130218.10/repos/base/,
> it has ia32/i586, armv7l, so it can be built with i586 or armv7l
>
> From: [email protected]
> [mailto:[email protected]] On Behalf Of Amitesh Singh
> Sent: Friday, May 03, 2013 2:42 PM
> To: [email protected]; [email protected]
> Subject: [Tizen General] How to build a 'not yet supported' arch with gbs?
>
> Hi All,
>
> How can I build a custom target arch with gbs? Lets say I want to build a
> arch name "myarch" with gbs with "gbs buld -A myarch".
> gbs uses depanneur for package building.
>
>
> Thanks
> Amitesh
>
> _______________________________________________
> IVI mailing list
> [email protected]
> https://lists.tizen.org/listinfo/ivi
_______________________________________________
IVI mailing list
[email protected]
https://lists.tizen.org/listinfo/ivi