mirror of
https://github.com/FunKey-Project/FunKey-OS.git
synced 2025-12-12 15:48:51 +01:00
Updated the Makefile to add my suffix
This commit is contained in:
parent
4fbbd56c88
commit
b3c2696551
8
Makefile
8
Makefile
@ -62,7 +62,7 @@ sdk: buildroot SDK/output/.config
|
|||||||
@$(BRMAKE) BR2_EXTERNAL=../SDK O=../SDK/output prepare-sdk
|
@$(BRMAKE) BR2_EXTERNAL=../SDK O=../SDK/output prepare-sdk
|
||||||
@$(call MESSAGE,"Generating SDK tarball")
|
@$(call MESSAGE,"Generating SDK tarball")
|
||||||
@export LC_ALL=C; \
|
@export LC_ALL=C; \
|
||||||
SDK=FunKey-sdk-$(shell cat FunKey/board/funkey/rootfs-overlay/etc/sw-versions | cut -f 2); \
|
SDK=FunKey-sdk-$(shell cat FunKey/board/funkey/rootfs-overlay/etc/sw-versions | cut -f 2)-DrUm78; \
|
||||||
grep -lr "$(shell pwd)/SDK/output/host" SDK/output/host | while read -r FILE ; do \
|
grep -lr "$(shell pwd)/SDK/output/host" SDK/output/host | while read -r FILE ; do \
|
||||||
if file -b --mime-type "$${FILE}" | grep -q '^text/'; then \
|
if file -b --mime-type "$${FILE}" | grep -q '^text/'; then \
|
||||||
sed -i "s|$(shell pwd)/SDK/output/host|/opt/$${SDK}|g" "$${FILE}"; \
|
sed -i "s|$(shell pwd)/SDK/output/host|/opt/$${SDK}|g" "$${FILE}"; \
|
||||||
@ -105,7 +105,7 @@ image: fun
|
|||||||
@mkdir -p root tmp
|
@mkdir -p root tmp
|
||||||
@./Recovery/output/host/bin/genimage --loglevel 0 --inputpath .
|
@./Recovery/output/host/bin/genimage --loglevel 0 --inputpath .
|
||||||
@rm -rf root tmp
|
@rm -rf root tmp
|
||||||
@mv images/sdcard.img images/FunKey-sdcard-$(shell cat FunKey/board/funkey/rootfs-overlay/etc/sw-versions | cut -f 2).img
|
@mv images/sdcard.img images/FunKey-sdcard-$(shell cat FunKey/board/funkey/rootfs-overlay/etc/sw-versions | cut -f 2)-DrUm78.img
|
||||||
|
|
||||||
image-prod: fun
|
image-prod: fun
|
||||||
@$(call MESSAGE,"Creating disk image")
|
@$(call MESSAGE,"Creating disk image")
|
||||||
@ -113,7 +113,7 @@ image-prod: fun
|
|||||||
@mkdir -p root tmp
|
@mkdir -p root tmp
|
||||||
@./Recovery/output/host/bin/genimage --loglevel 0 --config "genimage-prod.cfg" --inputpath .
|
@./Recovery/output/host/bin/genimage --loglevel 0 --config "genimage-prod.cfg" --inputpath .
|
||||||
@rm -rf root tmp
|
@rm -rf root tmp
|
||||||
@mv images/sdcard-prod.img images/FunKey-sdcard-prod-$(shell cat FunKey/board/funkey/rootfs-overlay/etc/sw-versions | cut -f 2).img
|
@mv images/sdcard-prod.img images/FunKey-sdcard-prod-$(shell cat FunKey/board/funkey/rootfs-overlay/etc/sw-versions | cut -f 2)-DrUm78.img
|
||||||
|
|
||||||
update: fun
|
update: fun
|
||||||
@$(call MESSAGE,"Creating update file")
|
@$(call MESSAGE,"Creating update file")
|
||||||
@ -128,7 +128,7 @@ update: fun
|
|||||||
@cd tmp && \
|
@cd tmp && \
|
||||||
echo sw-description rootfs.ext2.gz update_partition | \
|
echo sw-description rootfs.ext2.gz update_partition | \
|
||||||
tr " " "\n" | \
|
tr " " "\n" | \
|
||||||
cpio -o -H crc --quiet > ../images/FunKey-rootfs-$(shell cat FunKey/board/funkey/rootfs-overlay/etc/sw-versions | cut -f 2).fwu
|
cpio -o -H crc --quiet > ../images/FunKey-rootfs-$(shell cat FunKey/board/funkey/rootfs-overlay/etc/sw-versions | cut -f 2)-DrUm78.fwu
|
||||||
@rm -rf tmp
|
@rm -rf tmp
|
||||||
|
|
||||||
defconfig:
|
defconfig:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user