From owner-freebsd-uboot@freebsd.org Mon Jan 27 22:12:51 2020 Return-Path: Delivered-To: freebsd-uboot@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id D198F2306C2 for ; Mon, 27 Jan 2020 22:12:51 +0000 (UTC) (envelope-from thomas-bsd@skibo.net) Received: from bird.elm.relay.mailchannels.net (bird.elm.relay.mailchannels.net [23.83.212.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4863sG530zz4GJs for ; Mon, 27 Jan 2020 22:12:50 +0000 (UTC) (envelope-from thomas-bsd@skibo.net) X-Sender-Id: dreamhost|x-authsender|thomas-bsd@skibo.net Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 6A8FA8C15F0 for ; Mon, 27 Jan 2020 22:12:48 +0000 (UTC) Received: from pdx1-sub0-mail-a73.g.dreamhost.com (100-96-11-27.trex.outbound.svc.cluster.local [100.96.11.27]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 06DFB8C1076 for ; Mon, 27 Jan 2020 22:12:48 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|thomas-bsd@skibo.net Received: from pdx1-sub0-mail-a73.g.dreamhost.com ([TEMPUNAVAIL]. [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.18.5); Mon, 27 Jan 2020 22:12:48 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|thomas-bsd@skibo.net X-MailChannels-Auth-Id: dreamhost X-Reign-Juvenile: 5286213a461756d4_1580163168236_926518859 X-MC-Loop-Signature: 1580163168236:3573706334 X-MC-Ingress-Time: 1580163168235 Received: from pdx1-sub0-mail-a73.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a73.g.dreamhost.com (Postfix) with ESMTP id B7DB27F538 for ; Mon, 27 Jan 2020 14:12:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=skibo.net; h=from :content-type:content-transfer-encoding:mime-version:subject :message-id:references:to:date; s=skibo.net; bh=tzV3b24+6+VFLNh4 caUg0R4rP7U=; b=va3ma9JaTryNYCeLc3xBX3obf7oNX44SoaVYFUp5gDdc82c8 69gvSSvGZIbpscg59Sn1hS4tW9cJ//hBSC2nI9JvyBmBCWA0K0U15fRIEuOINalU ebiP5uArfLV+lXF0MBZtOfelHDaEpqZOh6MokUm9m8D0otY0rAhiqKB0dzs= Received: from [192.168.1.20] (c-67-180-61-4.hsd1.ca.comcast.net [67.180.61.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: thomas-bsd@skibo.net) by pdx1-sub0-mail-a73.g.dreamhost.com (Postfix) with ESMTPSA id 80DB87F534 for ; Mon, 27 Jan 2020 14:12:42 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a73 From: Thomas Skibo Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.40.2.2.4\)) Subject: Another u-boot build problem. Message-Id: <114E7BE8-61B2-4540-AFCB-7FAE91AAC6D0@skibo.net> References: To: freebsd-uboot@freebsd.org Date: Mon, 27 Jan 2020 14:12:41 -0800 X-Mailer: Apple Mail (2.3608.40.2.2.4) X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: 0 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedugedrfedvgdduheeiucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgdpffftgfetoffjqffuvfenuceurghilhhouhhtmecufedttdenucenucfjughrpefhtgfgggfukfhfvfffofesthhqmhdthhdtjeenucfhrhhomhepvfhhohhmrghsucfukhhisghouceothhhohhmrghsqdgsshgusehskhhisghordhnvghtqeenucfkphepieejrddukedtrdeiuddrgeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhhouggvpehsmhhtphdphhgvlhhopegludelvddrudeikedruddrvddtngdpihhnvghtpeeijedrudektddriedurdegpdhrvghtuhhrnhdqphgrthhhpefvhhhomhgrshcuufhkihgsohcuoehthhhomhgrshdqsghsugesshhkihgsohdrnhgvtheqpdhmrghilhhfrhhomhepthhhohhmrghsqdgsshgusehskhhisghordhnvghtpdhnrhgtphhtthhopehfrhgvvggsshguqdhusghoohhtsehfrhgvvggsshgurdhorhhg X-Rspamd-Queue-Id: 4863sG530zz4GJs X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=skibo.net header.s=skibo.net header.b=va3ma9Ja; dmarc=none; spf=pass (mx1.freebsd.org: domain of thomas-bsd@skibo.net designates 23.83.212.17 as permitted sender) smtp.mailfrom=thomas-bsd@skibo.net X-Spamd-Result: default: False [-3.50 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[skibo.net:s=skibo.net]; RCVD_COUNT_FIVE(0.00)[6]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:23.83.208.1/20]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-uboot@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCVD_TLS_LAST(0.00)[]; MV_CASE(0.50)[]; DKIM_TRACE(0.00)[skibo.net:+]; RCVD_IN_DNSWL_NONE(0.00)[17.212.83.23.list.dnswl.org : 127.0.3.0]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; IP_SCORE(-1.50)[ip: (-5.75), ipnet: 23.83.208.0/21(-0.89), asn: 36483(-0.78), country: CA(-0.09)]; DMARC_NA(0.00)[skibo.net]; RECEIVED_SPAMHAUS_PBL(0.00)[4.61.180.67.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.10]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:36483, ipnet:23.83.208.0/21, country:CA]; MID_RHS_MATCH_FROM(0.00)[] X-BeenThere: freebsd-uboot@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussions about the use of uboot with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Jan 2020 22:12:51 -0000 I was looking into creating a patch to submit to u-boot to fix a problem = with building u-boot for Zynq boards on FreeBSD and I ran into another = issue. This probably affects other boards so I thought I=E2=80=99d give = a heads up: It appears the build fails while building device tree blobs: DTC arch/arm/dts/bitmain-antminer-s9.dtb sed: 1: "arch/arm/dts/.bitmain-a ...": command a expects \ followed by = text gmake[2]: *** [scripts/Makefile.lib:308: = arch/arm/dts/bitmain-antminer-s9.dtb] Error 1 gmake[2]: *** Deleting file 'arch/arm/dts/bitmain-antminer-s9.dtb' gmake[1]: *** [dts/Makefile:38: arch-dtbs] Error 2 gmake: *** [Makefile:1087: dts/dt.dtb] Error 2 skibo@ashbury:~/u-boot-official %=20 The problem is that sed on FreeBSD requires the =E2=80=9C-e=E2=80=9D = option in front of the script but it=E2=80=99s optional with Linux sed. = This diff seems to fix it: diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib index ef116e0e0a..79d8ae2a23 100644 --- a/scripts/Makefile.lib +++ b/scripts/Makefile.lib @@ -302,7 +302,7 @@ cmd_dtc =3D mkdir -p $(dir ${dtc-tmp}) ; \ -i $(dir $<) $(DTC_FLAGS) \ -d $(depfile).dtc.tmp $(dtc-tmp) ; \ cat $(depfile).pre.tmp $(depfile).dtc.tmp > $(depfile) ; \ - sed -i "s:$(pre-tmp):$(<):" $(depfile) + sed -i -e "s:$(pre-tmp):$(<):" $(depfile) $(obj)/%.dtb: $(src)/%.dts FORCE $(call if_changed_dep,dtc) =E2=80=94Thomas Skibo