2017-09-06 19:19:45 +08:00
|
|
|
#
|
|
|
|
# Copyright (C) 2012-2014 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
include $(INCLUDE_DIR)/image.mk
|
|
|
|
|
|
|
|
FAT32_BLOCK_SIZE=1024
|
|
|
|
FAT32_BLOCKS=$(shell echo $$(($(CONFIG_OMAP_SD_BOOT_PARTSIZE)*1024*1024/$(FAT32_BLOCK_SIZE))))
|
|
|
|
|
|
|
|
UBIFS_OPTS = -F -m 2048 -e 124KiB -c 4096 -U
|
|
|
|
UBI_OPTS = -m 2048 -p 128KiB -s 512 -O 2048
|
|
|
|
|
|
|
|
define Build/omap-sdcard
|
|
|
|
rm -f $@.boot
|
|
|
|
mkfs.fat $@.boot -C $(FAT32_BLOCKS)
|
|
|
|
|
|
|
|
mcopy -i $@.boot $(STAGING_DIR_IMAGE)/$(DEVICE_NAME)/MLO ::MLO
|
|
|
|
mcopy -i $@.boot $(STAGING_DIR_IMAGE)/$(DEVICE_NAME)/u-boot.img ::u-boot.img
|
2020-07-02 23:30:56 +08:00
|
|
|
mcopy -i $@.boot $(STAGING_DIR_IMAGE)/$(DEVICE_NAME)/boot.scr ::boot.scr
|
2017-09-06 19:19:45 +08:00
|
|
|
mmd -i $@.boot ::/dtbs
|
|
|
|
mcopy -i $@.boot $(DTS_DIR)/$(DEVICE_DTS).dtb ::/dtbs/$(DEVICE_DTS).dtb
|
|
|
|
mcopy -i $@.boot $(IMAGE_KERNEL) ::/zImage
|
|
|
|
./gen_omap_sdcard_img.sh $@ \
|
|
|
|
$@.boot \
|
|
|
|
$(IMAGE_ROOTFS) \
|
|
|
|
$(CONFIG_OMAP_SD_BOOT_PARTSIZE) \
|
|
|
|
$(CONFIG_TARGET_ROOTFS_PARTSIZE)
|
|
|
|
rm -f $@.boot
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Device/Default
|
|
|
|
PROFILES := Default
|
|
|
|
KERNEL_NAME := zImage
|
|
|
|
KERNEL := kernel-bin
|
kernel: bump to 4.14.193, 4.19.138, 5.4.59 (#5350)
kernel: bump to 4.14.193, 4.19.138, 5.4.59 (#5350)
431fb8c mac80211: add AQL improvements
6bdd4c9 mac80211: add missing backports for building with 4.14 kernels
0106820 mac80211: add missing return code checks in AQL improvements
e7f7101 mac80211: rework encapsulation offload support
[package]
base-files: add function for generating random MAC
dnsmasq: abort dhcp_check on interface state
boot: sync upstream source code
ath10k-ct-firmware/mt76/sch_cake: update to latest git HEAD
[script]
download: add China Mirror Station
[target]
Sync: arc770, ath79, bcm63xx, kirkwood, lantiq, layerscape,
mediatek, mvebu, octeon, oxnas, pistachio, uml
Sync most of the target patches.
Run-compiled-on: ipq40xx (4.19 & 5.4), ramips
2020-08-26 11:31:50 +08:00
|
|
|
DEVICE_DTS = $(lastword $(subst _, ,$(1)))
|
2017-09-06 19:19:45 +08:00
|
|
|
IMAGES := sdcard.img.gz
|
|
|
|
IMAGE/sdcard.img.gz := omap-sdcard | append-metadata | gzip
|
2018-09-07 13:43:55 +08:00
|
|
|
SUPPORTED_DEVICES = $(subst _,$(comma),$(1))
|
2017-09-06 19:19:45 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
#uboot-omap-am335x_evm uboot-omap-omap3_beagle uboot-omap-omap3_overo uboot-omap-omap4_panda
|
|
|
|
|
2018-09-07 13:43:55 +08:00
|
|
|
define Device/ti_am335x-evm
|
2020-07-02 23:30:56 +08:00
|
|
|
DEVICE_VENDOR := Texas Instruments
|
|
|
|
DEVICE_MODEL := AM335x EVM
|
2017-09-06 19:19:45 +08:00
|
|
|
endef
|
|
|
|
|
2018-09-07 13:43:55 +08:00
|
|
|
TARGET_DEVICES += ti_am335x-evm
|
2017-09-06 19:19:45 +08:00
|
|
|
|
2018-09-07 13:43:55 +08:00
|
|
|
define Device/ti_am335x-bone-black
|
2020-07-02 23:30:56 +08:00
|
|
|
DEVICE_VENDOR := Texas Instruments
|
|
|
|
DEVICE_MODEL := AM335x BeagleBone Black
|
2017-09-06 19:19:45 +08:00
|
|
|
DEVICE_DTS := am335x-boneblack
|
|
|
|
endef
|
|
|
|
|
2018-09-07 13:43:55 +08:00
|
|
|
TARGET_DEVICES += ti_am335x-bone-black
|
2017-09-06 19:19:45 +08:00
|
|
|
|
2018-09-07 13:43:55 +08:00
|
|
|
define Device/ti_omap4-panda
|
2020-07-02 23:30:56 +08:00
|
|
|
DEVICE_VENDOR := PandaBoard.org
|
|
|
|
DEVICE_MODEL := OMAP4 TI pandaboard
|
2017-09-06 19:19:45 +08:00
|
|
|
DEVICE_PACKAGES := kmod-usb-net-smsc95xx
|
|
|
|
endef
|
|
|
|
|
2018-09-07 13:43:55 +08:00
|
|
|
TARGET_DEVICES += ti_omap4-panda
|
2017-09-06 19:19:45 +08:00
|
|
|
|
2018-09-07 13:43:55 +08:00
|
|
|
define Device/ti_omap3-beagle
|
2020-07-02 23:30:56 +08:00
|
|
|
DEVICE_VENDOR := BeagleBoard.org
|
|
|
|
DEVICE_MODEL := OMAP3 TI beagleboard
|
2017-09-06 19:19:45 +08:00
|
|
|
# beagleboard doesn't have a network interface, support most common usb net
|
kernel: bump to 4.14.193, 4.19.138, 5.4.59 (#5350)
kernel: bump to 4.14.193, 4.19.138, 5.4.59 (#5350)
431fb8c mac80211: add AQL improvements
6bdd4c9 mac80211: add missing backports for building with 4.14 kernels
0106820 mac80211: add missing return code checks in AQL improvements
e7f7101 mac80211: rework encapsulation offload support
[package]
base-files: add function for generating random MAC
dnsmasq: abort dhcp_check on interface state
boot: sync upstream source code
ath10k-ct-firmware/mt76/sch_cake: update to latest git HEAD
[script]
download: add China Mirror Station
[target]
Sync: arc770, ath79, bcm63xx, kirkwood, lantiq, layerscape,
mediatek, mvebu, octeon, oxnas, pistachio, uml
Sync most of the target patches.
Run-compiled-on: ipq40xx (4.19 & 5.4), ramips
2020-08-26 11:31:50 +08:00
|
|
|
DEVICE_PACKAGES := \
|
2017-09-06 19:19:45 +08:00
|
|
|
kmod-usb-net-asix kmod-usb-net-asix-ax88179 kmod-usb-net-hso \
|
|
|
|
kmod-usb-net-kaweth kmod-usb-net-pegasus kmod-usb-net-mcs7830 \
|
|
|
|
kmod-usb-net-smsc95xx kmod-usb-net-dm9601-ether
|
|
|
|
endef
|
|
|
|
|
2018-09-07 13:43:55 +08:00
|
|
|
TARGET_DEVICES += ti_omap3-beagle
|
2017-09-06 19:19:45 +08:00
|
|
|
|
|
|
|
$(eval $(call BuildImage))
|