Skip to content
Permalink
Browse files

KARL HACK: create a uboot version of the rootfs cpio

Used if you're doing split loads of rootfs via FEL and kernels from
elsewhere.  not appropriate for merge or permanence
  • Loading branch information...
karlp committed Feb 7, 2019
1 parent 117b08b commit 6438d22e98df353afe2635667b7dc29c97bd1196
Showing with 15 additions and 0 deletions.
  1. +15 −0 target/linux/sunxi/image/Makefile
@@ -29,6 +29,19 @@ define Build/sunxi-sdcard
rm -f $@.boot
endef

define Build/rootfs-uboot
echo "KARL _ BUILDING MY SPECIAL TARGET"
#ifdef CONFIG_TARGET_ROOTFS_CPIOGZ
# echo "YES, rootfs cpio existed we can convert it"
#endef
mkimage -A arm \
-O linux -T ramdisk \
-C gzip \
-d $(BIN_DIR)/$(IMG_PREFIX)-rootfs.cpio.gz \
$@
endef


# why \x00\x00\x00\x00 for zImage-initramfs
define Device/Default
PROFILES := Default
@@ -37,6 +50,8 @@ define Device/Default
KERNEL := kernel-bin | uImage none
IMAGES := sdcard.img.gz
IMAGE/sdcard.img.gz := sunxi-sdcard | append-metadata | gzip
ARTIFACTS := rootfs.uboot
ARTIFACT/rootfs.uboot := rootfs-uboot
endef

include cortex-a7.mk

0 comments on commit 6438d22

Please sign in to comment.
You can’t perform that action at this time.