From owner-freebsd-hackers@freebsd.org Tue May 1 19:22:22 2018 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9D4FFFB5117 for ; Tue, 1 May 2018 19:22:22 +0000 (UTC) (envelope-from 6yearold@gmail.com) Received: from mail-pf0-x22d.google.com (mail-pf0-x22d.google.com [IPv6:2607:f8b0:400e:c00::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2167676F95; Tue, 1 May 2018 19:22:22 +0000 (UTC) (envelope-from 6yearold@gmail.com) Received: by mail-pf0-x22d.google.com with SMTP id q22so9754408pff.11; Tue, 01 May 2018 12:22:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=0KtgPPJ9/Zpl41414O6vXAFvoWYraUwFNrI1YrSH04k=; b=RoNN9T9sTmIq5Naj7VdMwhDYvpegfHKnkAEvI1Ov5pe+kRN97LJ66owUj7smkMJxqm MG0wB0kYqyUvO6fQhjB7fbfRtN8U9HUuSZvlfEjllx4LWyliLShWZzzTVLixXZ6/Lhla majInnvLUcdXZwGYcZkG2x6L+CMmOQQGc9+zt7Gk8TLK8zz9+DIsqLCofggumk1/t+fe kBJwauRLts7l3RxI3AEtw7cgfupVRPva70JfKxRLXNzCJ9POoACtjerNiK7/3k1Nmdog t61STuU+uOhKI2cTspuvRx37mhcAo23IKkG7AG0HN3vWrSn15q5w212hl3FIPD/TuWW4 x2/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=0KtgPPJ9/Zpl41414O6vXAFvoWYraUwFNrI1YrSH04k=; b=TVg4bUuOoCod7K/qn9QTLg+1qNnF3q91k/qs5qC1YjZn+Q4x9j0S0paIH1WbVm6P+9 z+UDtOyvSfjmih/LQshqh1J3dUVg3+BMbopfDTSfMt/8NRrOMzoljCs+T+U+Xfempb6l 47lUcUxp0SJM40voWBaY0c4md1oQ2VvvWsD4HVxq5JlLGpiBJqPgtX0EWYZYN8CAnDGL 8ydr6zYb40AKe2mKz7oCFqjpT9bepfrHwWRMcv9PTW3TPJLyW5NsXpmcP+OKOPyFFH5l nwQwV5cUhVOjS/hu4vNlMXBbNc5mHkID7DDMojHz/xKS9UpwYmL7ESgWZ8rlxyhbSjQp r4Ag== X-Gm-Message-State: ALQs6tCpXkAFlZZ08a0pCU2Z0pfSFVSkzzu+T4rCtTMBOuJMWyHv2Sd7 uONx4LifM/7Eeofp7KdXP7tM+iwNQYFkT3VRfcWIKA== X-Google-Smtp-Source: AB8JxZqsGS5Yi2Fn4WhBUlLcsqE75S/l+XPQuJ/V2h7Vw56d/XOf3na/JyfwBF8Sp1UuZnFik5fRZdvVcp9UDuxjtMI= X-Received: by 2002:a17:902:6505:: with SMTP id b5-v6mr17257028plk.147.1525202540919; Tue, 01 May 2018 12:22:20 -0700 (PDT) MIME-Version: 1.0 Received: by 10.100.182.201 with HTTP; Tue, 1 May 2018 12:21:50 -0700 (PDT) In-Reply-To: References: From: Gleb Popov <6yearold@gmail.com> Date: Tue, 1 May 2018 22:21:50 +0300 Message-ID: Subject: Re: Porting questions To: Craig Leres Cc: FreeBSD Hackers Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 May 2018 19:22:22 -0000 On Tue, May 1, 2018 at 8:26 PM, Craig Leres wrote: > I'm working a port for the Espressif ESP32 toolchain so I can move > development of some projects (FreeRTOS and Arduino) from Ubuntu to FreeBSD. > I have a few questions. > > (1) Naming: The pre-built linux 64 bit toolchain is called: > > xtensa-esp32-elf-linux64-1.22.0-80-g6c4433a-5.2.0.tar.gz > > so I thought the port should be called xtensa-esp32-elf; is this a > reasonable name? > > (2) Port version: The toolchain is built from the latest version: > > https://github.com/espressif/crosstool-NG > > There is not a release that corresponds to this version; is it legit for > me to use: > > DISTVERSION= 1.22.0-80-g6c4433a5 > GH_TUPLE= espressif:crosstool-NG:${DISTVERSION} > > which apparently gives me 1.22.0.80.g6.c4433.a5 as the PORTVERSION? > > (3) USES=gcc doesn't provide a binary named gcc: crosstool-NG has the > string "gcc" firmly baked into it. When I have USES=gcc (today) I get gcc6 > but without patching a ton of files I need gcc to exist when poudriere is > building. I solved this by also adding: > > BUILD_DEPENDS+= gcc:lang/gcc > > but it seems wrong to me that USES=gcc doesn't provide a binary named gcc. > You can add BINARY_ALIAS= gcc=gcc6 line to work around this. > (4) How to handle downloads that shouldn't be extracted: The toolchain > uses specific versions of a bunch of things: > > TARBALLS= \ > binutils-2.25.1.tar.bz2 \ > expat-2.1.0.tar.gz \ > gcc-5.2.0.tar.bz2 \ > gdb-7.10.tar.xz \ > gmp-6.0.0a.tar.xz \ > isl-0.14.tar.xz \ > mpc-1.0.3.tar.gz \ > mpfr-3.1.3.tar.xz \ > ncurses-6.0.tar.gz \ > newlib-2.2.0.tar.gz > > Normally the build process downloads these which doesn't work well with > poudriere; you don't want to download these every time you build port. I > put copies in my /usr/ports/distfiles and add symlinks to the work tree in > post-extract and later the build script correctly skips downloading them > when it finds them already there. I'd like to add these to DISTFILES for > auto-download and checksums but I don't want them extracted by do-extract. > Is my best option to override the do-extract target? > > I've attached the current version of the Makefile for informal review. > > Craig > > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" > >