Initial commit
Some checks failed
Build Kernel / Build all affected Kernels (push) Has been cancelled
Build all core packages / Build all core packages for selected target (push) Has been cancelled
Build and Push prebuilt tools container / Build and Push all prebuilt containers (push) Has been cancelled
Build Toolchains / Build Toolchains for each target (push) Has been cancelled
Build host tools / Build host tools for linux and macos based systems (push) Has been cancelled
Coverity scan build / Coverity x86/64 build (push) Has been cancelled
Some checks failed
Build Kernel / Build all affected Kernels (push) Has been cancelled
Build all core packages / Build all core packages for selected target (push) Has been cancelled
Build and Push prebuilt tools container / Build and Push all prebuilt containers (push) Has been cancelled
Build Toolchains / Build Toolchains for each target (push) Has been cancelled
Build host tools / Build host tools for linux and macos based systems (push) Has been cancelled
Coverity scan build / Coverity x86/64 build (push) Has been cancelled
This commit is contained in:
36
target/linux/qoriq/image/Makefile
Normal file
36
target/linux/qoriq/image/Makefile
Normal file
@@ -0,0 +1,36 @@
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
include $(INCLUDE_DIR)/image.mk
|
||||
|
||||
SQUASHFSCOMP := xz $(LZMA_XZ_OPTIONS)
|
||||
|
||||
define Build/sdcard-img
|
||||
rm -fR $@.boot
|
||||
mkdir -p $@.boot
|
||||
$(CP) $(KDIR)/$(DEVICE_NAME)$(KERNEL_SUFFIX) $@.boot
|
||||
$(if $(DEVICE_DTS),\
|
||||
$(foreach dtb,$(DEVICE_DTS),$(CP) $(KDIR)/image-$(dtb).dtb $@.boot), \
|
||||
$(CP) $(KDIR)/image-/*.dtb $@.boot)
|
||||
|
||||
PADDING=1 $(SCRIPT_DIR)/gen_image_generic.sh \
|
||||
$@ \
|
||||
$(CONFIG_TARGET_KERNEL_PARTSIZE) $@.boot \
|
||||
$(CONFIG_TARGET_ROOTFS_PARTSIZE) $(IMAGE_ROOTFS) \
|
||||
2048
|
||||
|
||||
$(if $(UBOOT),dd if=$(STAGING_DIR_IMAGE)/$(UBOOT).img of=$@ bs=512 skip=1 seek=1 conv=notrunc)
|
||||
endef
|
||||
|
||||
define Device/Default
|
||||
PROFILES := Default
|
||||
DEVICE_DTS := $(subst _,-,$(1))
|
||||
KERNEL_DEPENDS = $$(wildcard $(DTS_DIR)/$$(DEVICE_DTS).dts)
|
||||
KERNEL_ENTRY := 0x00000000
|
||||
KERNEL_LOADADDR := 0x00000000
|
||||
KERNEL := kernel-bin
|
||||
endef
|
||||
|
||||
include $(SUBTARGET).mk
|
||||
|
||||
$(eval $(call BuildImage))
|
||||
17
target/linux/qoriq/image/generic.mk
Normal file
17
target/linux/qoriq/image/generic.mk
Normal file
@@ -0,0 +1,17 @@
|
||||
define Device/watchguard_firebox-m300
|
||||
DEVICE_VENDOR := WatchGuard
|
||||
DEVICE_MODEL := Firebox M300
|
||||
DEVICE_COMPAT_MESSAGE := \
|
||||
Kernel switched to FIT uImage. Update U-Boot environment.
|
||||
DEVICE_COMPAT_VERSION := 1.1
|
||||
DEVICE_DTS_DIR := $(DTS_DIR)/fsl
|
||||
DEVICE_PACKAGES := \
|
||||
kmod-gpio-button-hotplug kmod-hwmon-w83793 kmod-leds-gpio kmod-ptp-qoriq \
|
||||
kmod-rtc-rs5c372a kmod-tpm-i2c-atmel
|
||||
KERNEL := kernel-bin | gzip | fit gzip $$(KDIR)/image-$$(firstword $$(DEVICE_DTS)).dtb
|
||||
KERNEL_SUFFIX := -fit-uImage.itb
|
||||
IMAGES := sdcard.img.gz sysupgrade.img.gz
|
||||
IMAGE/sysupgrade.img.gz := sdcard-img | gzip | append-metadata
|
||||
IMAGE/sdcard.img.gz := sdcard-img | gzip
|
||||
endef
|
||||
TARGET_DEVICES += watchguard_firebox-m300
|
||||
Reference in New Issue
Block a user