iopsys-ramips: generate iop_version and customer files

Signed-off-by: Bartlomiej Grzeskowiak's avatarBartlomiej Grzeskowiak <bartlomiej.grzeskowiak@iopsys.eu>
parent fd80f507
......@@ -56,8 +56,7 @@ define Build/iopsys-v3-pkginfo
> $(KDIR)/pkginfo
endef
define Build/iopsys-v3-ubifs
# add components to rootfs and ubifs
define Build/iopsys-image-prepare
mkdir -p $(TARGET_DIR)/boot
$(CP) $(KDIR)/image-$(DTS).dtb $(TARGET_DIR)/boot/dtb
$(STAGING_DIR_HOST)/bin/lzma e $(KDIR)/vmlinux -lc1 -lp2 -pb2 $(KDIR)/vmlinux.bin.lzma
......@@ -66,6 +65,14 @@ define Build/iopsys-v3-ubifs
-d $(KDIR)/vmlinux.bin.lzma $(KDIR)/uImage.lzma
$(CP) $(KDIR)/uImage.lzma $(BIN_DIR)/$(IMG_PREFIX).uImage
$(CP) $(KDIR)/uImage.lzma $(TARGET_DIR)/boot/uImage
mkdir -p $(TARGET_DIR)/lib/db/version
echo $(subst $\",,$(IHGSP_VERSION)) > $(TARGET_DIR)/lib/db/version/iop_version
echo $(CONFIG_TARGET_CUSTOMER)> $(TARGET_DIR)/lib/db/version/iop_customer
endef
define Build/iopsys-v3-ubifs
# add components to rootfs and ubifs
$(call Build/iopsys-image-prepare)
$(STAGING_DIR_HOST)/bin/mkfs.ubifs $(UBIFS_OPTS) \
--space-fixup --compr=zlib --squash-uids \
-o $(KDIR)/root.ubifs -d $(call mkfs_target_dir,$(1))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment