summaryrefslogtreecommitdiffstats
path: root/platforms
Commit message (Collapse)AuthorAgeFilesLines
* barebox: set architecture for mipsOleksij Rempel2019-03-011-0/+1
| | | | | Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* hardening: add option for -fstack-clash-protectionMichael Olbrich2019-02-211-0/+10
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* optee: add the OP-TEE as new target packageRouven Czerwinski2019-02-141-0/+40
| | | | | | | | Provide two KConfig files to allow inclusion of OP-TEE for userspace libraries and applications. Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* u-boot: Add u-boot{-dtb, -with-spl-pbl}.bin image installation optionsAhmad Fatoum2019-02-071-0/+14
| | | | | | Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Alexander Dahl <ada@thorsis.com> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* u-boot: Add option to use Kconfig based configurationAlexander Dahl2019-02-071-1/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Recent versions of U-Boot (from 2014.10) use a Kconfig based configuration. To also support the old system and not break existing builds, this is introduced as optional, which also allows to build a defconfig without oldconfig/menuconfig and a .config file in the BSP. A new menu entry of type 'choice' was added to choose between the new Kconfig based and the legacy config system (boldly inspired by buildroot). Options for prepare and compile stage were revised and adapted to U-Boot build documentation (CROSS_COMPILE and HOSTCC in env instead of make options). That part is based on the first patch 'u-boot: add support for oldconfig/menuconfig' by Ahmad Fatoum from October 2018, but extended by the new menu options, which more or less follows a suggestion of Michael Olbrich to support both configuration systems and distinguish in the make rule. The option to avoid parallel building is only kept for the legacy build, modern U-Boot uses the kernel build system and should build fine in parallel. Also added is support for ptxdist option -v for a more verbose build. This is passed to make with V= option, which is based on a second patch 'u-boot: add V=$(PTXDIST_VERBOSE) to make options' by Ahmad Fatoum, but squashed into this, because all those variable stuff was rewritten anyway. Compile tested with: * recent DistroKit, ptxdist 2019.01.0, U-Boot 2019.01, and defconfig for Microchip SAMA5D27-SOM1-EK1 (platform-v7a), both build system approaches. * custom BSP, ptxdist 2018.05.0, U-Boot 2012.04.01, and config "at91sam9g20ek_nandflash" (arm-v5te), legacy build only. Co-authored-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Alexander Dahl <ada@thorsis.com> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* u-boot: Bump default version and tweak help textsAlexander Dahl2019-02-071-6/+11
| | | | | | | | | | | The default U-Boot version to be built was from 2007, maybe it's time to bump that? The help text better explains the make config target option now, and how U-Boot is written in the help texts was unified. Signed-off-by: Alexander Dahl <ada@thorsis.com> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* kernel: ARCH_MIPSEL is never definedMichael Olbrich2019-01-271-1/+0
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* kernel: add vmlinuz supportOleksij Rempel2019-01-071-0/+8
| | | | | | | it is compressed ELF image. Mostly interesting for MIPS platforms. Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* kernel: add workaround to keep kernelconfigs stableMichael Olbrich2018-12-061-0/+12
| | | | | | | | | | With linux-4.19 and gcc-8.x oldconfig will prompt for extra options that are not available with e.g. gcc-7.x. This causes problems when a BSP is built with different host compilers. Add a workaround to optionally disable these extra options by forcing the compiler check to fail. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* u-boot: Add support for SPL for non-OMAP CPUsGuillermo Rodríguez2018-11-101-3/+11
| | | | | | | | | | Add support for installing the SPL binary for non-OMAP CPUs. Also properly remove any files installed in the platform image directory in the clean stage. Signed-off-by: Guillermo Rodriguez <guille.rodriguez@gmail.com> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* Fix typos in KConfig files (.in rules)Alexander Dahl2018-11-097-14/+14
| | | | | | | | To not fix typos one by one, use a tool for that. All typos found with `codespell -i 3 -w rules/*.in platforms/*.in`. Signed-off-by: Alexander Dahl <ada@thorsis.com> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* platforms: add a section for project specific platform packagesMichael Olbrich2018-11-062-0/+5
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* rules: allow selecting most host packages in the platformconfigMichael Olbrich2018-11-061-0/+1
| | | | | | | | | | | Do this by including the the hosttools_noprompt section for the platformconfig. This way, we don't need to manually add a package to the platformconfig when it is needed. Exceptions are special packages that are always enabled and host-gobject-introspection because it needs host-qemu. These packages are now in the new hosttools_noprompt_ptx section. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* toolchain_options: disable TARGET_COMPILER_RECORD_SWITCHES by defaultMichael Olbrich2018-10-031-1/+7
| | | | | | It creates unnecessary changes in the final binaries. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* dtc: support layers in DTC_OFTREE_DTS_PATH by defaultMichael Olbrich2018-09-211-1/+1
| | | | | | | PTXDIST_PLATFORMCONFIG_SUBDIR is a relative path and will be searched in all layers. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* barebox: support layers with BAREBOX_EXTRA_ENV_PATHMichael Olbrich2018-09-201-1/+4
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* image-root-squashfs: add rules for generic squashfs imageBaeuerle, Florian2018-07-311-0/+72
| | | | | This adds rules for generating a squashfs image from the root filesystem via genimage.
* platforms/kernel: add riscvRouven Czerwinski2018-07-301-0/+1
| | | | | Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* architecture: add riscv supportRouven Czerwinski2018-07-301-0/+11
| | | | | Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* image-root-tgz: Add IMAGE_ROOT_TGZ_LABEL optionJon Ringle2018-07-131-2/+17
| | | | | Signed-off-by: Jon Ringle <jringle@gridpoint.com> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* platforms: merge image sectionsMichael Olbrich2018-05-3113-14/+13
| | | | | | Keep the image2 section for BSPs that still use it. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* u-boot-v2: remove in favor of bareboxRoland Hieber2018-05-311-32/+0
| | | | | | | | Historical package that has since been renamed to barebox. Fixes: 6815a8a1789ed3b3437436e0f859 ("[barebox] add new packet barebox") Signed-off-by: Roland Hieber <r.hieber@pengutronix.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* platforms: remove old ISO image ruleMichael Olbrich2018-05-301-29/+0
| | | | | | | If this is still needed, a new proper image package using genimage should be created. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* remove unmaintained microblaze stuffMichael Olbrich2018-05-304-99/+1
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* create image rules for the kernel imagesMichael Olbrich2018-05-302-7/+7
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* platforms: remove obsolete cpio image ruleMichael Olbrich2018-05-301-16/+0
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* image_iso: use new cpio.gz imageMichael Olbrich2018-05-301-1/+1
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* platforms: remove obsolete ext2 image ruleMichael Olbrich2018-05-301-49/+0
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* platforms: remove obsolete uRamdisk image ruleMichael Olbrich2018-05-301-63/+0
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* platforms: remove obsolete hd image ruleMichael Olbrich2018-05-302-174/+0
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* turn vdi image into a new imageMichael Olbrich2018-05-301-4/+4
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* platforms: remove obsolete ubi/ubifs image rulesMichael Olbrich2018-05-302-220/+0
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* platforms: remove obsolete tar image ruleMichael Olbrich2018-05-301-18/+0
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* platforms: remove obsolete squashfs image ruleMichael Olbrich2018-05-301-84/+0
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* platforms: remove obsolete jffs2 image ruleMichael Olbrich2018-05-301-52/+0
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* kernel: use new cpio image as initramfsMichael Olbrich2018-05-301-1/+1
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* platforms: remove obsolete vfat image ruleMichael Olbrich2018-05-301-12/+0
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* kernel: update default kernel version to something more recentMichael Olbrich2018-03-021-1/+1
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* kernel: add option to depend on host-libelfMichael Olbrich2018-02-081-0/+9
| | | | | | This is need for x86_64 kernel with orc unwinder enabled. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* kernel: add option to depend on host-lz4Michael Olbrich2017-09-161-0/+12
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* Debugging: add support for 'build-id'sJuergen Borleis2017-06-211-0/+4
| | | | | | | | | | | | | | | | | | | | Recent debugging tools support separate binaries and debug information files. Providing a unique 'build-id' embedded in the binary enables the debugging tools to select the correct and matching debug information files from the system's root filesystem. The 'build-id' is a 40 character calculated SHA1 from important sections in the binary. The debug information files get stored at a central direcory at "/usr/lib/debug/", with a special path based on the 'build-id'. If the 'build-id' is "123456789abcdef", the path and filename will be ".build-id/12/3456789abcdef.debug". Its possible to have more than one 'build-id' in the binary. This implementation prefers the first one in the list, which might be the wrong one. It's unclear yet how the common debugging tools will behave in this case. Signed-off-by: Juergen Borleis <jbe@pengutronix.de>
* rauc: fix indentionptxdist-2017.05.0Michael Olbrich2017-05-131-1/+1
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* kernel: need openssl since v4.3Markus Niebel2017-03-311-0/+10
| | | | | | | | | | | regarding to https://www.kernel.org/doc/Documentation/Changes kernel needs openssl to compile since v4.3 This is true only for use cases like module signing and trusted keyring for things like IMA. Add hostside openssl as an optional dependency Signed-off-by: Markus Niebel <Markus.Niebel@tq-group.com> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* image-rauc: new packageEnrico Jorns2017-03-241-0/+28
| | | | | | | | | | | | | | | | | This adds a default image recipe for building a RAUC update Bundle out of the systems rootfs. In order to sign your update (mandatory) you need to place a valid certificate and key file in your BSP. Their location is default they are currently expected to be located at: $(PTXDIST_PLATFORMCONFIGDIR)/config/rauc/rauc.key.pem (key) $(PTXDIST_PLATFORMCONFIGDIR)/config/rauc/rauc.cert.pem (cert) PTXdist will then create the bundle during a run of `ptxdist images`. Signed-off-by: Enrico Jorns <ejo@pengutronix.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* Toolchain: add help for the "store compiler flags" menu entryJuergen Borleis2017-03-241-0/+4
| | | | | | | Just add some words how to make use of this option. Signed-off-by: Juergen Borleis <jbe@pengutronix.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* kernel: depend kernel on having bc installedMarkus Niebel2017-03-091-0/+1
| | | | | | | | | This is needed to build kernels newer than 3.10. Select new host-bc rule for kernel target to make sure bc is there before compiling kernel Signed-off-by: Markus Niebel <Markus.Niebel@tq-group.com> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* barebox: bump default barebox versionUwe Kleine-König2016-09-211-1/+1
| | | | | Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* toolchain: bump defaults to 2016.06Uwe Kleine-König2016-09-091-3/+3
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* Update at91bootstrap2 package for compatibility with 3.x seriesgrodriguez2016-09-021-4/+4
| | | | | | | | | The original 2.x series of at91bootstrap are not available anymore, and the current rules don't work with the 3.x series. Update them for at91bootstrap 3.4 and above. Signed-off-by: Guillermo Rodriguez <guille.rodriguez@gmail.com> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* barebox: set architecture for arm64Michael Olbrich2016-08-221-1/+1
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>