postgresql: enable bfin compile
PATCH v3 3/8 postgresql: enable bfin compile
Hello Thomas,
Quoted 11 lines · Thomas Petazzoni
Dear Peter Seiderer,
Quoted 2 lines · Peter Seiderer
Will provide a patch for postgresql to check for fork/BR2_USE_MMU, is there any special string for the comment besides 'needs threads'?
No there is no comment about a
BR2_USE_MMUdependency, because it's not something the user can "fix" : if your architecture doesn't have a MMU, it's like this, there's nothing you can do about it.
Quoted 8 lines
Quoted 4 lines
No special point, had the build environment still from [1] around...
In retrospect (in case bfin is disabled because of fork) the patch subject should have been something different...
Well, the patch by itself is then completely useless, because Blackfin is a noMMU architecture, so postgresql will never work on it.
You are right (did not know that the 'uclinux' in 'bfin-buildroot-uclinux-uclibc' stands for microcontroller Linux/noMMU)...
The only minor purpose leftover is as gcc ICE exampel for 'bfin-uclinux-gcc (ADI-2014R1-RC2) 4.3.5' (see [1])...
Revert the patch or keep it?
Regards,
Peter
[1] http://lists.busybox.net/pipermail/buildroot/2015-March/121094.html
Quoted 5 lines
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH v3 3/8 postgresql: enable bfin compile
Dear Peter Seiderer,
Quoted 1 line · Peter Seiderer
The only minor purpose leftover is as gcc ICE exampel for 'bfin-uclinux-gcc (ADI-2014R1-RC2) 4.3.5' (see [1])...
I don't understand, why do you say it's the "only minor purpose leftover" ?
If PostgreSQL uses fork(), it *cannot* work on noMMU architecture, so there is no way to build PostgreSQL on Blackfin.
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com