# PYNQ 2.5.1 custom board building mixed with pynq boards

**URL:** https://discuss.pynq.io/t/pynq-2-5-1-custom-board-building-mixed-with-pynq-boards/778
**Category:** Support
**Created:** [December 19, 2019, 5:13pm UTC](https://discuss.pynq.io/t/pynq-2-5-1-custom-board-building-mixed-with-pynq-boards/778 "2019-12-19T17:13:20Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![skorolcz](https://avatars.discourse-cdn.com/v4/letter/s/94ad74/32.png) [@skorolcz](https://discuss.pynq.io/u/skorolcz)
#### Post date: [December 19, 2019, 5:13pm UTC](https://discuss.pynq.io/t/pynq-2-5-1-custom-board-building-mixed-with-pynq-boards/778/1 "2019-12-19T17:13:20Z")

</div>

Hi,  
I am building PYNQ for custom board. For Pynq 2.4 everything is ok. But in the middle of Pynq 2.5.1 building process I’ve got message:

- ‘[’ Unknown ‘!=’ Unknown ‘]’
- ‘[’ -n ‘’ ‘]’
- ‘[’ -n ‘’ ‘]’
- cd /home/user/PYNQ/sdbuild/build/PYNQ
- ./build.sh  
./build.sh  
Script for building default overlays, microblaze bsp’s and binaries.  
building bitstream logictools.bit for Pynq-Z1  
make[1]: Entering directory ‘/home/user/PYNQ/sdbuild/build/PYNQ/boards/Pynq-Z1/logictools’

and then Pynq build everything for includded boards Z1, Z2 and ZCU104. It means logictools and other Vivado compilation steps. What is worse ZCU104 requires dedicated Xilinx license. My .spec board file:  
ARCH\_EPD100 := arm  
BSP\_EPD100 :=  
BITSTREAM\_EPD100 := base/base.bit

STAGE4\_PACKAGES\_EPD100 := pynq ethernet

I am using command: make BOARDS=EPD100  
How to disable this procedure?  
Stefan

---

<div class="post-metadata">

### Author: ![gnatale](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/gnatale/32/11_2.png) [@gnatale](https://discuss.pynq.io/u/gnatale)
#### Post date: [December 20, 2019, 11:02am UTC](https://discuss.pynq.io/t/pynq-2-5-1-custom-board-building-mixed-with-pynq-boards/778/2 "2019-12-20T11:02:54Z")

</div>

We are aware of this and we fixed it, but it is currently not documented on readthedocs, a forum search would have helped. In any case, we introduced two options that will be helpful to you (in particular, what you are looking for is the `PYNQ_SDIST` option for make, the `PREBUILT` will also speed-up tremendously your build in case you are not making changes to the rootfs):

The two options are documented here: [https://github.com/Xilinx/PYNQ/tree/master/sdbuild](https://github.com/Xilinx/PYNQ/tree/master/sdbuild)  
and here (not yet updated on readthedocs): [https://github.com/Xilinx/PYNQ/blob/master/docs/source/pynq\_sd\_card.rst](https://github.com/Xilinx/PYNQ/blob/master/docs/source/pynq_sd_card.rst)  
In particular:

- [PYNQ/pynq\_sd\_card.rst at master · Xilinx/PYNQ · GitHub](https://github.com/Xilinx/PYNQ/blob/master/docs/source/pynq_sd_card.rst#re-use-the-pynq-source-distribution-tarball)
- [https://github.com/Xilinx/PYNQ/blob/master/docs/source/pynq\_sd\_card.rst#using-the-prebuilt-board-agnostic-image](https://github.com/Xilinx/PYNQ/blob/master/docs/source/pynq_sd_card.rst#using-the-prebuilt-board-agnostic-image)

The relevant excerpt from the sdbuild readme:

To use a board-agnostic image to build a board-specific image you can pass the `PREBUILT` variable:

`make PREBUILT=<image path> BOARDS=<board>`

To use a previously built PYNQ source distribution tarball you can pass the `PYNQ_SDIST` variable. This will also avoid having to rebuild bitstreams (except for external boards) and MicroBlazes’ bsps and binaries.

`make PYNQ_SDIST=<sdist tarball path>`
