2018-07-10 11:58:59 +08:00
|
|
|
#
|
2020-05-28 12:48:29 +08:00
|
|
|
# Copyright 2018-2020 NXP
|
2018-07-10 11:58:59 +08:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
define Device/Default
|
|
|
|
PROFILES := Default
|
|
|
|
FILESYSTEMS := squashfs
|
2020-05-28 12:48:29 +08:00
|
|
|
IMAGES := firmware.bin sysupgrade.bin
|
2018-07-10 11:58:59 +08:00
|
|
|
KERNEL := kernel-bin | uImage none
|
|
|
|
KERNEL_NAME := zImage
|
|
|
|
KERNEL_LOADADDR := 0x80008000
|
|
|
|
KERNEL_ENTRY_POINT := 0x80008000
|
2020-07-20 15:34:04 +02:00
|
|
|
DEVICE_DTS = $(lastword $(subst _, ,$(1)))
|
|
|
|
SUPPORTED_DEVICES = $(subst _,$(comma),$(1))
|
2020-06-29 16:18:57 +08:00
|
|
|
IMAGE_SIZE := 64m
|
2020-05-28 12:48:29 +08:00
|
|
|
IMAGE/sysupgrade.bin := append-kernel | pad-to 16M | \
|
2020-06-29 16:18:57 +08:00
|
|
|
append-rootfs | pad-rootfs | \
|
|
|
|
check-size $(LS_SYSUPGRADE_IMAGE_SIZE) | append-metadata
|
2018-07-10 11:58:59 +08:00
|
|
|
endef
|
|
|
|
|
2020-07-20 15:34:04 +02:00
|
|
|
define Device/fsl_ls1021a-twr
|
2019-09-13 17:52:34 +02:00
|
|
|
DEVICE_VENDOR := NXP
|
|
|
|
DEVICE_MODEL := TWR-LS1021A
|
|
|
|
DEVICE_VARIANT := Default
|
2020-04-01 16:47:41 +08:00
|
|
|
DEVICE_PACKAGES += layerscape-rcw
|
2018-07-10 11:58:59 +08:00
|
|
|
IMAGE/firmware.bin := \
|
|
|
|
ls-clean | \
|
|
|
|
ls-append $(1)-rcw.bin | pad-to 1M | \
|
|
|
|
ls-append $(1)-uboot.bin | pad-to 3M | \
|
|
|
|
ls-append $(1)-uboot-env.bin | pad-to 15M | \
|
|
|
|
ls-append-dtb $$(DEVICE_DTS) | pad-to 16M | \
|
|
|
|
append-kernel | pad-to 32M | \
|
2020-06-29 16:18:57 +08:00
|
|
|
append-rootfs | pad-rootfs | check-size
|
2018-07-10 11:58:59 +08:00
|
|
|
endef
|
2020-07-20 15:34:04 +02:00
|
|
|
TARGET_DEVICES += fsl_ls1021a-twr
|
2018-07-18 14:14:40 +08:00
|
|
|
|
2020-07-20 15:34:04 +02:00
|
|
|
define Device/fsl_ls1021a-twr-sdboot
|
2019-09-13 17:52:34 +02:00
|
|
|
DEVICE_VENDOR := NXP
|
|
|
|
DEVICE_MODEL := TWR-LS1021A
|
|
|
|
DEVICE_VARIANT := SD Card Boot
|
2018-07-18 14:14:40 +08:00
|
|
|
DEVICE_DTS := ls1021a-twr
|
|
|
|
FILESYSTEMS := ext4
|
2020-05-28 16:02:28 +08:00
|
|
|
IMAGES := sdcard.img sysupgrade.bin
|
2018-07-18 14:14:40 +08:00
|
|
|
IMAGE/sdcard.img := \
|
|
|
|
ls-clean | \
|
|
|
|
ls-append-sdhead $(1) | pad-to 4K | \
|
|
|
|
ls-append $(1)-uboot.bin | pad-to 3M | \
|
|
|
|
ls-append $(1)-uboot-env.bin | pad-to 15M | \
|
|
|
|
ls-append-dtb $$(DEVICE_DTS) | pad-to 16M | \
|
|
|
|
append-kernel | pad-to $(LS_SD_ROOTFSPART_OFFSET)M | \
|
|
|
|
append-rootfs | check-size $(LS_SD_IMAGE_SIZE)
|
2020-05-28 16:02:28 +08:00
|
|
|
IMAGE/sysupgrade.bin := \
|
|
|
|
ls-clean | \
|
|
|
|
ls-append-sdhead $(1) | pad-to 16M | \
|
|
|
|
append-kernel | pad-to $(LS_SD_ROOTFSPART_OFFSET)M | \
|
|
|
|
append-rootfs | check-size $(LS_SD_IMAGE_SIZE) | append-metadata
|
2018-07-18 14:14:40 +08:00
|
|
|
endef
|
2020-07-20 15:34:04 +02:00
|
|
|
TARGET_DEVICES += fsl_ls1021a-twr-sdboot
|
2018-11-02 18:30:57 +08:00
|
|
|
|
2020-07-20 15:34:04 +02:00
|
|
|
define Device/fsl_ls1021a-iot-sdboot
|
2019-09-13 17:52:34 +02:00
|
|
|
DEVICE_VENDOR := NXP
|
|
|
|
DEVICE_MODEL := LS1021A-IoT
|
|
|
|
DEVICE_VARIANT := SD Card Boot
|
2018-11-02 18:30:57 +08:00
|
|
|
DEVICE_DTS := ls1021a-iot
|
|
|
|
FILESYSTEMS := ext4
|
2020-07-20 15:34:04 +02:00
|
|
|
SUPPORTED_DEVICES :=
|
2018-11-02 18:30:57 +08:00
|
|
|
IMAGES := sdcard.img
|
|
|
|
IMAGE/sdcard.img := \
|
|
|
|
ls-clean | \
|
|
|
|
ls-append-sdhead $(1) | pad-to 4K | \
|
|
|
|
ls-append $(1)-uboot.bin | pad-to 1M | \
|
|
|
|
ls-append $(1)-uboot-env.bin | pad-to 15M | \
|
|
|
|
ls-append-dtb $$(DEVICE_DTS) | pad-to 16M | \
|
|
|
|
append-kernel | pad-to $(LS_SD_ROOTFSPART_OFFSET)M | \
|
|
|
|
append-rootfs | check-size $(LS_SD_IMAGE_SIZE)
|
|
|
|
endef
|
2020-07-20 15:34:04 +02:00
|
|
|
TARGET_DEVICES += fsl_ls1021a-iot-sdboot
|