<p><b>@cladmi</b> requested changes on this pull request.</p>

<hr>

<p>In <a href="https://github.com/RIOT-OS/RIOT/pull/10440#discussion_r290284809">dist/tools/usb-serial/README.md</a>:</p>
<pre style='color:#555'>>      endif
 
-    # Fallback PORT if no serial was specified or if the specified serial was not found
-    ifeq ($(PORT),)
-        ifeq ($(OS),Linux)
-          PORT := $(firstword $(shell $(RIOTTOOLS)/usb-serial/find-tty.sh))
-        else ifeq ($(OS),Darwin)
-          PORT := $(shell ls -1 /dev/tty.SLAB_USBtoUART* | head -n 1)
-        endif
-    endif
+    PORT_LINUX_EXACT = $(if $(PROGRAMMER_SERIAL),$(firstword $(shell $(RIOTTOOLS)/usb-serial/find-tty.sh "^$(PROGRAMMER_SERIAL)$$")),)
</pre>
<p>This changes more than removing <code>exports</code>. Only remove the mention to <code>export</code> here I would say.</p>
<p>When changing this one, the files using the pattern will also need to be updated, and even put in common which was somehow done in <a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="263696691" data-permission-text="Issue title is private" data-url="https://github.com/RIOT-OS/RIOT/issues/7695" data-hovercard-type="pull_request" data-hovercard-url="/RIOT-OS/RIOT/pull/7695/hovercard" href="https://github.com/RIOT-OS/RIOT/pull/7695">#7695</a> (with other issues)</p>
<pre><code>git grep 'usb-serial/find-tty.sh'
boards/cc2538dk/Makefile.include:PORT_LINUX ?= $(word 2,$(shell $(RIOTTOOLS)/usb-serial/find-tty.sh '^$(PROGRAMMER_SERIAL)'))
boards/mulle/Makefile.include:      PORT := $(firstword $(shell $(RIOTTOOLS)/usb-serial/find-tty.sh '^$(DEBUG_ADAPTER_ID)$$'))
boards/mulle/Makefile.include:      PORT := $(firstword $(shell $(RIOTTOOLS)/usb-serial/find-tty.sh))
boards/pba-d-01-kw2x/Makefile.include:  SERIAL_TTY = $(firstword $(shell $(RIOTTOOLS)/usb-serial/find-tty.sh $(SERIAL)))
dist/tools/usb-serial/README.md:          PORT := $(firstword $(shell $(RIOTTOOLS)/usb-serial/find-tty.sh "^$(PROGRAMMER_SERIAL)$$"))
dist/tools/usb-serial/README.md:          PORT := $(firstword $(shell $(RIOTTOOLS)/usb-serial/find-tty.sh))
makefiles/boards/sam0.inc.mk:  SERIAL_TTY = $(firstword $(shell $(RIOTTOOLS)/usb-serial/find-tty.sh $(SERIAL)))
</code></pre>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/RIOT-OS/RIOT/pull/10440?email_source=notifications&email_token=ABE7WYHWZMQ3N5XNEI56T73PYZSAFA5CNFSM4GFLXMN2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOB2QPTWA#pullrequestreview-245430744">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABE7WYDGDP3CKDFI3E7XTMTPYZSAFANCNFSM4GFLXMNQ">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABE7WYCUI2CX73SZLRH4XS3PYZSAFA5CNFSM4GFLXMN2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOB2QPTWA.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/RIOT-OS/RIOT/pull/10440?email_source=notifications\u0026email_token=ABE7WYHWZMQ3N5XNEI56T73PYZSAFA5CNFSM4GFLXMN2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOB2QPTWA#pullrequestreview-245430744",
"url": "https://github.com/RIOT-OS/RIOT/pull/10440?email_source=notifications\u0026email_token=ABE7WYHWZMQ3N5XNEI56T73PYZSAFA5CNFSM4GFLXMN2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOB2QPTWA#pullrequestreview-245430744",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>