From: Andreas Friesen <ms.frsn@gmail.com>
To: ptxdist@pengutronix.de
Subject: Re: [ptxdist] How to create multiple packages, which contain same filename ?
Date: Tue, 11 Dec 2018 11:59:20 +0100 [thread overview]
Message-ID: <CAA0ZWqamqgt7CG=_jMqkhCHOaO0jLjkVjfhj_AJz7SgvKT8uMA@mail.gmail.com> (raw)
In-Reply-To: <8511997be26a8a2cfc65ed9474a88c67ec60c5d8.camel@allegion.com>
[-- Attachment #1.1: Type: text/plain, Size: 2788 bytes --]
Hi Florian,
ptxdist reports me after workspace clean this error (see below). This is
always first targetinstall one of the above mentioned packages. The build
order seems to be random.
After repetition of "ptxdist go -j -q " is the build OK. Who create /boot
in root ? Or witch /boot is meant ? What is wrong ?
-------------------------------------
target: fpgaimage-cx27c.targetinstall
-------------------------------------
install_init: preparing for image creation of 'fpgaimage-cx27c'...
....
xpkg_finish: creating opkg package ...
install file:
src=ptx-multi/projectroot/lib/firmware/fpga_complete/soc_system_cx27c.rbf
dst=/boot/fpgaimage.rbf
owner=0
group=0
permissions=0755
chmod: cannot access
'/home/friesen/quantumx/projects/ppc/ptx-multi/platform-soc/root/boot/fpgaimage.rbf':
No such file or directory
Error: install_file failed!
xpkg_finish: failed.
/home/friesen/quantumx/projects/ppc/ptx-multi/rules/fpgaimage-cx27c.make:12:
recipe for target
'/home/friesen/quantumx/projects/ppc/ptx-multi/platform-soc/state/fpgaimage-cx27c.targetinstall'
failed
make: ***
[/home/friesen/quantumx/projects/ppc/ptx-multi/platform-soc/state/fpgaimage-cx27c.targetinstall]
Error 1
make: *** Waiting for unfinished jobs....
Am Di., 11. Dez. 2018 um 09:58 Uhr schrieb Baeuerle, Florian <
Florian.Baeuerle@allegion.com>:
> Hi Andreas,
>
> this use case is supported by ptxdist, actually quite exactly as you
> planned it.
>
> You will eventually run into this issue:
>
> https://www.mail-archive.com/ptxdist@pengutronix.de/msg13611.html
>
> But probably only if you use image packages for creating your three
> rootfses at
> the same time (saves a lot of build time btw).
>
>
> Best Regards
> Florian
>
> Am Donnerstag, den 06.12.2018, 12:49 +0100 schrieb Andreas Friesen:
> > Hello everyone,
> >
> > we've got many module types, each module type builds on same platform. I
> > would like create a generic barebox environment for all module types.
> >
> > My problem is, that ptxdist don't like packages, which contain same
> filename.
> > My plan was to create several packages :
> >
> > - firmware-Type-A.ipkg (contains /boot/{fpga.bin,platform.dtb)
> > - firmware-Type-B.ipkg (contains /boot/{fpga.bin,platform.dtb)
> > - firmware-Type-C.ipkg (contains /boot/{fpga.bin,platform.dtb)
> >
> > And each module install via" collection" the respective package.
> >
> > What can I do ? I would like to avoid having foreign components in the
> > firmware package.
> >
> > Regards,
> > Andreas Friesen
> > _______________________________________________
> > ptxdist mailing list
> > ptxdist@pengutronix.de
> _______________________________________________
> ptxdist mailing list
> ptxdist@pengutronix.de
[-- Attachment #1.2: Type: text/html, Size: 9778 bytes --]
[-- Attachment #2: fpgaimage-cx27c.make --]
[-- Type: application/octet-stream, Size: 990 bytes --]
PACKAGES-$(PTXCONF_FPGAIMAGE_CX27C) += fpgaimage-cx27c
FPGAIMAGE_CX27C_VERSION := 0.0.1
FPGAIMAGE_CX27C_LICENSE := Copyright (C) 2007 Hottinger Baldwin Messtechnik GmbH
$(STATEDIR)/fpgaimage-cx27c.install:
@$(call targetinfo)
@install -D -m 0755 $(PTXDIST_WORKSPACE)/projectroot/lib/firmware/fpga_complete/$(PTXCONF_QUANTUMX_RBF_CX27C) $(IMAGEDIR)/$(PTXCONF_QUANTUMX_RBF_CX27C)
@$(call touch)
$(STATEDIR)/fpgaimage-cx27c.targetinstall:
@$(call targetinfo)
@$(call install_init, fpgaimage-cx27c)
@$(call install_fixup,fpgaimage-cx27c,PRIORITY,optional)
@$(call install_fixup,fpgaimage-cx27c,SECTION,base)
@$(call install_fixup,fpgaimage-cx27c,AUTHOR,"Andreas Friesen <andreas.friesen@hbm.com>")
@$(call install_fixup,fpgaimage-cx27c,DESCRIPTION,missing)
@$(call install_copy, fpgaimage-cx27c, 0, 0, 0755, $(PTXDIST_WORKSPACE)/projectroot/lib/firmware/fpga_complete/$(PTXCONF_QUANTUMX_RBF_CX27C), /boot/fpgaimage.rbf)
@$(call install_finish,fpgaimage-cx27c)
@$(call touch)
[-- Attachment #3: collectionconfig.cx27c --]
[-- Type: application/octet-stream, Size: 1436 bytes --]
#
# Automatically generated file; DO NOT EDIT.
# PTXdist 2018.11.0
#
PTXCONF__collectionconfig_MAGIC__=y
# PTXCONF_COLLECTION_NONE is not set
PTXCONF_COLLECTION_MANUAL=y
# PTXCONF_COLLECTION_ALL is not set
PTXCONF_BAREBOX_MINI_NOR_CX27C=y
# PTXCONF_BAREBOX_MINI_NOR_MX471C is not set
# PTXCONF_BAREBOX_MINI_NOR_MXFS4 is not set
PTXCONF_BAREBOX_NOR_CX27C=y
# PTXCONF_BAREBOX_NOR_MX471C is not set
# PTXCONF_BAREBOX_NOR_MXFS4 is not set
PTXCONF_BAREBOX_XLOAD_NOR_CX27C=y
# PTXCONF_BAREBOX_XLOAD_NOR_MX471C is not set
# PTXCONF_BAREBOX_XLOAD_NOR_MXFS4 is not set
PTXCONF_BAREBOX_XLOAD_SD_CX27C=y
# PTXCONF_BAREBOX_XLOAD_SD_MX471C is not set
# PTXCONF_BAREBOX_XLOAD_SD_MXFS4 is not set
# PTXCONF_CAN_STATIC_TRANSMIT is not set
PTXCONF_DTBIMAGE_CX27C=y
# PTXCONF_DTBIMAGE_MX471C is not set
# PTXCONF_DTBIMAGE_MXFS4 is not set
# PTXCONF_FB_CANFD_DECODER is not set
# PTXCONF_FB_FIBER is not set
# PTXCONF_FB_FIBER_OSA is not set
# PTXCONF_FB_PROFINET is not set
# PTXCONF_FB_SIGGEN is not set
# PTXCONF_FIELDBUS is not set
PTXCONF_FPGAIMAGE_CX27C=y
# PTXCONF_FPGAIMAGE_MX471C is not set
# PTXCONF_FPGAIMAGE_MXFS4 is not set
# PTXCONF_FSAPPL is not set
# PTXCONF_HOST_GENEXT2FS is not set
# PTXCONF_HOST_GENIMAGE is not set
# PTXCONF_HOST_LIBCONFUSE is not set
# PTXCONF_HOST_LIBLZO is not set
# PTXCONF_HOST_MTD_UTILS is not set
# PTXCONF_HOST_MTOOLS is not set
# PTXCONF_HOST_UTIL_LINUX_NG is not set
# PTXCONF_SDC_UPDATE_SCRIPTS is not set
[-- Attachment #4: quantumx-cx27c.in --]
[-- Type: application/octet-stream, Size: 2064 bytes --]
##SECTION=quantumx_images
menuconfig QUANTUMX_CX27C
bool "QuantumX CX27C"
default y
if QUANTUMX_CX27C
config IMAGE_UBIFS_CX27C
tristate
select HOST_GENIMAGE
select HOST_MTD_UTILS
prompt "images/root-cx27c.ubifs"
default m
config IMAGE_SD_CX27C
tristate
select HOST_GENIMAGE
select HOST_MTOOLS
prompt "images/sd-cx27c.img"
default m
config IMAGE_CX27C_TGZ
tristate
prompt "images/root-cx27c.tgz"
default m
config BAREBOX_NOR_CX27C
tristate
prompt "Barebox (nor-cx27c)"
default m
config BAREBOX_MINI_NOR_CX27C
tristate
prompt "Barebox (xload-mini-nor-cx27c)"
default m
config BAREBOX_XLOAD_SD_CX27C
tristate
prompt "Barebox (xload-sd-cx27c)"
default m
config BAREBOX_XLOAD_NOR_CX27C
tristate
prompt "Barebox (xload-nor-cx27c)"
default m
if BAREBOX_XLOAD_SD_CX27C
config IMAGE_CX27C_VFAT
tristate
select HOST_MTOOLS
prompt "vfat (boot-cx27c.vfat)"
default m
config IMAGE_CX27C_EXT2
tristate
select HOST_GENEXT2FS
prompt "ext2 (root-cx27c.ext2)"
default m
endif
config DTBIMAGE_CX27C
tristate
# prompt "DeviceTree Image (CX27C)"
depends on IMAGE_UBIFS_CX27C
default m
if DTBIMAGE_CX27C
config QUANTUMX_DTS_CX27C
string "device tree file (dts)"
default "socfpga_cyclone5_cx27c.dts"
endif
config FPGAIMAGE_CX27C
tristate
# prompt "FPGA Image (CX27C)"
depends on IMAGE_UBIFS_CX27C
default m
if FPGAIMAGE_CX27C
config QUANTUMX_RBF_CX27C
string "fpga image (rbf)"
default "soc_system_cx27c.rbf"
endif
config QUANTUMX_REVISION_CX27C
string "Revision strings"
default "101"
config QUANTUMX_CONFIGSTRING_CX27C
string "Configstring"
default "^^"
config IMAGE_CONFIGSTRING_CX27C
bool
default y
config BLSPEC_CX27C
tristate
# prompt "/loader/entries/cx27c.conf"
default y
endif
[-- Attachment #5: Type: text/plain, Size: 91 bytes --]
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
next prev parent reply other threads:[~2018-12-11 10:55 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-06 11:49 Andreas Friesen
2018-12-11 7:29 ` Michael Olbrich
2018-12-11 8:58 ` Baeuerle, Florian
2018-12-11 10:59 ` Andreas Friesen [this message]
2018-12-11 11:13 ` Baeuerle, Florian
2018-12-14 10:57 ` Andreas Friesen
2018-12-14 11:51 ` Baeuerle, Florian
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAA0ZWqamqgt7CG=_jMqkhCHOaO0jLjkVjfhj_AJz7SgvKT8uMA@mail.gmail.com' \
--to=ms.frsn@gmail.com \
--cc=ptxdist@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox