aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/sunxi/image/Makefile
Commit message (Collapse)AuthorAgeFilesLines
* target: use SPDX license identifiers on MakefilesAdrian Schmutzler2021-02-101-4/+2
| | | | | | Use SPDX license tags to allow machines to check licenses. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
* treewide: provide global default for SUPPORTED_DEVICESAdrian Schmutzler2021-01-231-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The majority of our targets provide a default value for the variable SUPPORTED_DEVICES, which is used in images to check against the compatible on a running device: SUPPORTED_DEVICES := $(subst _,$(comma),$(1)) At the moment, this is implemented in the Device/Default block of the individual targets or even subtargets. However, since we standardized device names and compatible in the recent past, almost all targets are following the same scheme now: device/image name: vendor_model compatible: vendor,model The equal redundant definitions are a symptom of this process. Consequently, this patch moves the definition to image.mk making it a global default. For the few targets not using the scheme above, SUPPORTED_DEVICES will be defined to a different value in Device/Default anyway, overwriting the default. In other words: This change is supposed to be cosmetic. This can be used as a global measure to get the current compatible with: $(firstword $(SUPPORTED_DEVICES)) (Though this is not precisely an achievement of this commit.) Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
* treewide: simplify inclusion of subtarget image filesAdrian Schmutzler2020-06-111-11/+1
| | | | | | | | | | | | | | Many target use a repetitive if-include scheme for their subtarget image files, though their names are consistent with the subtarget names. This patch removes these redundant conditions and just uses the variable for the include where the target setup allows it. For sunxi, this includes a trivial rename of the subtarget image Makefiles. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
* treewide: gather DEVICE_VARS into one placeSungbo Eo2020-03-211-1/+1
| | | | | | | | | | | Place DEVICE_VARS assignments at the top of the file or above Device/Default to make them easier to find. For ramips, remove redundant values already present in parent file. Signed-off-by: Sungbo Eo <mans0n@gorani.run> [do not touch ar71xx, extend commit message] Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
* sunxi: remove SUNXI_UBOOT from DEVICE_VARSSungbo Eo2020-03-111-1/+1
| | | | | | | All SUNXI_UBOOT usages were removed in e018c4d7ab8b ("uboot-sunxi: clean up, switch to u-boot.mk"). Now drop the variable completely. Signed-off-by: Sungbo Eo <mans0n@gorani.run>
* sunxi: tidy up and sort alphabetically in image MakefilesAdrian Schmutzler2020-01-231-0/+8
| | | | | | | | | | This tidies up the image Makefiles for the sunxi target by: - Move the if-condition for the subtarget to the parent Makefile - Remove lots of unnecessary empty lines - Sort device definitions alphabetically - Harmonize line wrapping for DEVICE_PACKAGES Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
* sunxi: rename SUNXI_SOC to SOCAdrian Schmutzler2019-12-201-3/+2
| | | | | | | This replaces SUNXI_SOC by the newly introduced common SOC device variable. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
* sunxi: construct DTS name from device node name and SOCAdrian Schmutzler2019-12-131-1/+4
| | | | | | | | | The device part in the SUNXI_DTS variable always corresponds to device node name. This is another redundancy that can be removed by calculating the DTS name from a newly introduced SUNXI_SOC variable and the node name. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
* sunxi: use vendor_device scheme for device definitionsAdrian Schmutzler2019-12-131-0/+1
| | | | | | | | | | | | This changes device definition to resemble the vendor_device scheme already present for the majority of device compatible strings. By doing this, we achieve several advantages at once: - Image names and node names are more consistent with other targets. - SUPPORTED_DEVICES can be set automatically for all but two cases. - Image names and node names are in line with DEVICE_TITLEs. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
* sunxi: Add A64 support with cortex53 subtargetHauke Mehrtens2017-09-181-0/+1
| | | | | | | | | | | | This adds initial support for the A64 Allwinner SoC to LEDE. It will be build in the new cortexa53 subtarget. Currently it only supports the pine64 and the image is able to boot on this SoC. Camera, Ethernet, HDMI and other parts are currently not working. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* sunxi: split into cortex A8 and A7 subtargetHauke Mehrtens2017-09-181-149/+2
| | | | | | Now we can activate some compiler optimizations for the cortex A7. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* build: get rid of host.mkFelix Fietkau2017-02-261-1/+0
| | | | | | Defined required host related variables in toplevel.mk instead Signed-off-by: Felix Fietkau <nbd@nbd.name>
* sunxi: put u-boot images into image staging directoryJo-Philipp Wich2017-01-271-2/+2
| | | | | | | | | | | | Do not put the u-boot images into the kernel build directory as this directory might get removed after kernel updates while the u-boot packages InstallDev recipe is not getting re-executed because it is still considered current, leading to image build failures later on due to missing images. To ensure that built bootloader images persist over kernel version updates in the buildroot, put them into the new STAGING_DIR_IMAGE directory. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* uboot-sunxi: clean up, switch to u-boot.mkFelix Fietkau2017-01-241-32/+17
| | | | | | | | Instead of referencing u-boot packages from device profiles and having a -all metapackage, make the u-boot packages hidden (they don't install to bin/ anyway), and name the files in KERNEL_BUILD_DIR appropriately Signed-off-by: Felix Fietkau <nbd@nbd.name>
* sunxi: use fwtool for checking sdcard imagesYousong Zhou2017-01-051-1/+16
| | | | | | | | | | | | | | To achieve this, device tree compatible string was used as boardname and the value of it will be checked against supported_devices list. It should be noted that we do not distinguish between sun5i-a13-olimex-som and sun5i-a13-olinuxino as they share the same dts file. The other thing is that we need to gunzip the generated firmware to do fwtool check. Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
* sunxi: convert to new image generation methodYousong Zhou2017-01-051-70/+142
| | | | | | | | | | | The new Device/xxx were transformed automatically from old profiles. Most device names are now taken from basename of the corresponding kernel device tree file. Device/sun5i-a13-olimex-som is an exception because it is not explicitly supported in the kernel yet and shares the same dts file with Device/sun5i-a13-olinuxino Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
* sunxi: fix dts name for Mele M9Yousong Zhou2017-01-051-1/+1
| | | | Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
* tools: remove old mkdosfs symlink from dosfstoolsÁlvaro Fernández Rojas2016-10-121-1/+1
| | | | Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
* sunxi: add support for Orange Pi Plus (H3)Zoltan Herpai2016-02-021-1/+5
| | | | | | Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu> SVN-Revision: 48618
* sunxi: respect CONFIG_TARGET_IMAGES_GZIPZoltan Herpai2015-08-151-0/+4
| | | | | | Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net> SVN-Revision: 46608
* sunxi: create KDIR_TMP, build boot.img in itZoltan Herpai2015-08-151-6/+8
| | | | | | | | | | | | | | | | | It's nice to have a distinction between files which are built during the normal OpenWrt build process and ones that are created by the ImageBuilder (like it already exists on some other targets). This also gives boot.img a profile-specific prefix as it contains profile- specific data. KDIR_TMP does not need to be specified since include/image.mk already sets it. Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net> Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu> SVN-Revision: 46607
* sunxi: fix uboot install locationZoltan Herpai2015-08-151-2/+2
| | | | | | | | | | Install uboot files to KERNEL_BUILD_DIR instead of BIN_DIR to fix ImageBuilder. Similar fixes are necessary for many (all?) other uboot targets. Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net> SVN-Revision: 46605
* sunxi: don't copy DTS files to BIN_DIRZoltan Herpai2015-08-151-25/+5
| | | | | | | | | The DTS files aren't useful (other targets don't copy them either) and clutter BIN_DIR with files unrelated to the chosen profile. Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net> SVN-Revision: 46604
* sunxi: use common image prefixJo-Philipp Wich2015-05-271-3/+3
| | | | | | Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 45788
* sunxi: A20-OLinuXino-Lime profile rename leftoverNicolas Thill2015-02-121-1/+1
| | | | | | Signed-off-by: Nicolas Thill <nico@openwrt.org> SVN-Revision: 44423
* sunxi: add support for Lamobo R1Zoltan Herpai2015-01-301-1/+6
| | | | | | Signed-off-by: Daniel Golle <daniel@makrotopia.org> SVN-Revision: 44214
* sunxi: update Olimex A13 SOM profileZoltan Herpai2015-01-181-1/+1
| | | | | | Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu> SVN-Revision: 44040
* sunxi: bump kernel to 3.18 - refresh patches - add bananapro, cubietruck, ↵Zoltan Herpai2015-01-091-2/+16
| | | | | | | | mele_m9 support Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu> SVN-Revision: 43900
* sunxi: add support for Olimex A20-OLinuXino-LIMENicolas Thill2014-11-061-0/+5
| | | | | | Signed-off-by: Nicolas Thill <nico@openwrt.org> SVN-Revision: 43189
* sunxi: re-add rootfs build when no profile is set, fixes #17980, thanks.Zoltan Herpai2014-10-051-0/+2
| | | | | | Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu> SVN-Revision: 42775
* sunxi: add sdcard image generation support when board profile is selectedZoltan Herpai2014-09-141-1/+58
| | | | | | Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu> SVN-Revision: 42534
* target/linux/*/image/Makefile: use new dts path variableJohn Crispin2014-07-211-1/+1
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 41791
* sunxi: add support for Lemaker bananaPiZoltan Herpai2014-06-011-0/+1
| | | | | | Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu> SVN-Revision: 40898
* sunxi: add board support for LinkSprite pcDuino v3Zoltan Herpai2014-04-301-1/+2
| | | | | | Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu> SVN-Revision: 40606
* sunxi: sun6i-a31 changes - push remaining sun6i patches for 3.13 - enable ↵Zoltan Herpai2014-02-051-0/+1
| | | | | | | | Colombus A31 devboard (compile-tested only) Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu> SVN-Revision: 39487
* sunxi: fix image generationZoltan Herpai2014-01-131-0/+1
| | | | | | Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu> SVN-Revision: 39276
* sunxi: various changes - rename hstimer DT on sun5i to avoid confusion - add ↵Zoltan Herpai2014-01-121-3/+4
| | | | | | | | Cubietruck support - select watchdog by default - select rtc in profiles where appropriate - cosmetic changes Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu> SVN-Revision: 39263
* sunxi: add support for Olinuxino A10 LIMEZoltan Herpai2014-01-111-0/+1
| | | | | | | Signed-off-by: Zalan Blenessy <zalan.blenessy@gmail.com> Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu> SVN-Revision: 39222
* sunxi: add support for pcDuino boardZoltan Herpai2014-01-041-0/+1
| | | | | | Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu> SVN-Revision: 39190
* sunxi: rework target - update kernel to 3.12 - add patches for clocks, i2c, ↵Zoltan Herpai2013-11-141-96/+16
| | | | | | | | usb, sid, rtc - support common image for A10/A13/A20 - add support for a couple boards - most drivers are configured into the kernel as of now Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu> SVN-Revision: 38811
* sunxi: add new targetLuka Perkov2013-11-051-0/+121
Signed-off-by: Luka Perkov <luka@openwrt.org> SVN-Revision: 38651