From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gustavo Zacarias Date: Sun, 21 Jul 2013 13:32:05 -0300 Subject: [Buildroot] [PATCH 8/9] blackfin: set GNU_TARGET_NAME accordingly In-Reply-To: <20130721173845.15f7da05@skate> References: <1374324735-2286-1-git-send-email-gustavo@zacarias.com.ar> <1374324735-2286-9-git-send-email-gustavo@zacarias.com.ar> <20130721173845.15f7da05@skate> Message-ID: <51EC0D05.7010204@zacarias.com.ar> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net On 07/21/2013 12:38 PM, Thomas Petazzoni wrote: > Isn't the 'uclinux' OS part something that is not specific to Blackfin? > I.e, should this rather be something like: > > ifeq ($(BR2_USE_MMU),y) > OS=linux > else > OS=uclinux > endif In theory, yes. For blackfin, doesn't seem so. Seems (caveat: no access to blackfin.uclinux.org IF it's even documented, bizarre patches and so on) that for blackfin being MMU-less across the whole arch it's used to select from FDPIC and FLAT*. Again going to the source (gcc to be precise) we see that crtreloc.o (for FDPIC targets) is used in gcc/config/bfin/linux.h (linux tuple), and crtlibid (for FLAT targets, internal to gcc) is used in gcc/config/bfin/uclinux.h crtreloc.o is generated by uClibc only when doing FDPIC, and used by 'linux', and 'uclinux' doesn't do FDPIC (no linking with crtreloc.o) hence FLAT. Regards.