mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-28 21:56:31 +00:00
Alessio Massaro writes: The syntax $VAR_NAME is used in several places. The correct syntax is actually $(VAR_NAME)
This commit is contained in:
parent
70b5dc8892
commit
b81bcbd229
@ -68,19 +68,19 @@ cramfsroot: host-fakeroot makedevs cramfs
|
|||||||
@rm -rf $(TARGET_DIR)/usr/info
|
@rm -rf $(TARGET_DIR)/usr/info
|
||||||
-/sbin/ldconfig -r $(TARGET_DIR) 2>/dev/null
|
-/sbin/ldconfig -r $(TARGET_DIR) 2>/dev/null
|
||||||
# Use fakeroot to pretend all target binaries are owned by root
|
# Use fakeroot to pretend all target binaries are owned by root
|
||||||
rm -f $(STAGING_DIR)/_fakeroot.$(notdir $CRAMFS_TARGET)
|
rm -f $(STAGING_DIR)/_fakeroot.$(notdir $(CRAMFS_TARGET))
|
||||||
touch $(STAGING_DIR)/.fakeroot.00000
|
touch $(STAGING_DIR)/.fakeroot.00000
|
||||||
cat $(STAGING_DIR)/.fakeroot* > $(STAGING_DIR)/_fakeroot.$(notdir $CRAMFS_TARGET)
|
cat $(STAGING_DIR)/.fakeroot* > $(STAGING_DIR)/_fakeroot.$(notdir $(CRAMFS_TARGET))
|
||||||
echo "chown -R root:root $(TARGET_DIR)" >> $(STAGING_DIR)/_fakeroot.$(notdir $CRAMFS_TARGET)
|
echo "chown -R root:root $(TARGET_DIR)" >> $(STAGING_DIR)/_fakeroot.$(notdir $(CRAMFS_TARGET))
|
||||||
# Use fakeroot to pretend to create all needed device nodes
|
# Use fakeroot to pretend to create all needed device nodes
|
||||||
echo "$(STAGING_DIR)/bin/makedevs -d $(TARGET_DEVICE_TABLE) $(TARGET_DIR)" \
|
echo "$(STAGING_DIR)/bin/makedevs -d $(TARGET_DEVICE_TABLE) $(TARGET_DIR)" \
|
||||||
>> $(STAGING_DIR)/_fakeroot.$(notdir $CRAMFS_TARGET)
|
>> $(STAGING_DIR)/_fakeroot.$(notdir $(CRAMFS_TARGET))
|
||||||
# Use fakeroot so mkcramfs believes the previous fakery
|
# Use fakeroot so mkcramfs believes the previous fakery
|
||||||
echo "$(CRAMFS_DIR)/mkcramfs -q $(CRAMFS_ENDIANNESS) " \
|
echo "$(CRAMFS_DIR)/mkcramfs -q $(CRAMFS_ENDIANNESS) " \
|
||||||
"$(TARGET_DIR) $(CRAMFS_TARGET)" >> $(STAGING_DIR)/_fakeroot.$(notdir $CRAMFS_TARGET)
|
"$(TARGET_DIR) $(CRAMFS_TARGET)" >> $(STAGING_DIR)/_fakeroot.$(notdir $(CRAMFS_TARGET))
|
||||||
chmod a+x $(STAGING_DIR)/_fakeroot.$(notdir $CRAMFS_TARGET)
|
chmod a+x $(STAGING_DIR)/_fakeroot.$(notdir $(CRAMFS_TARGET))
|
||||||
$(STAGING_DIR)/usr/bin/fakeroot -- $(STAGING_DIR)/_fakeroot.$(notdir $CRAMFS_TARGET)
|
$(STAGING_DIR)/usr/bin/fakeroot -- $(STAGING_DIR)/_fakeroot.$(notdir $(CRAMFS_TARGET))
|
||||||
-@rm -f $(STAGING_DIR)/_fakeroot.$(notdir $CRAMFS_TARGET)
|
-@rm -f $(STAGING_DIR)/_fakeroot.$(notdir $(CRAMFS_TARGET))
|
||||||
|
|
||||||
cramfsroot-source: cramfs-source
|
cramfsroot-source: cramfs-source
|
||||||
|
|
||||||
|
@ -73,13 +73,13 @@ $(EXT2_BASE): host-fakeroot makedevs genext2fs
|
|||||||
@rm -rf $(TARGET_DIR)/usr/info
|
@rm -rf $(TARGET_DIR)/usr/info
|
||||||
-/sbin/ldconfig -r $(TARGET_DIR) 2>/dev/null
|
-/sbin/ldconfig -r $(TARGET_DIR) 2>/dev/null
|
||||||
# Use fakeroot to pretend all target binaries are owned by root
|
# Use fakeroot to pretend all target binaries are owned by root
|
||||||
rm -f $(STAGING_DIR)/_fakeroot.$(notdir $EXT2_TARGET)
|
rm -f $(STAGING_DIR)/_fakeroot.$(notdir $(EXT2_TARGET))
|
||||||
touch $(STAGING_DIR)/.fakeroot.00000
|
touch $(STAGING_DIR)/.fakeroot.00000
|
||||||
cat $(STAGING_DIR)/.fakeroot* > $(STAGING_DIR)/_fakeroot.$(notdir $EXT2_TARGET)
|
cat $(STAGING_DIR)/.fakeroot* > $(STAGING_DIR)/_fakeroot.$(notdir $(EXT2_TARGET))
|
||||||
echo "chown -R root:root $(TARGET_DIR)" >> $(STAGING_DIR)/_fakeroot.$(notdir $EXT2_TARGET)
|
echo "chown -R root:root $(TARGET_DIR)" >> $(STAGING_DIR)/_fakeroot.$(notdir $(EXT2_TARGET))
|
||||||
# Use fakeroot to pretend to create all needed device nodes
|
# Use fakeroot to pretend to create all needed device nodes
|
||||||
echo "$(STAGING_DIR)/bin/makedevs -d $(TARGET_DEVICE_TABLE) $(TARGET_DIR)" \
|
echo "$(STAGING_DIR)/bin/makedevs -d $(TARGET_DEVICE_TABLE) $(TARGET_DIR)" \
|
||||||
>> $(STAGING_DIR)/_fakeroot.$(notdir $EXT2_TARGET)
|
>> $(STAGING_DIR)/_fakeroot.$(notdir $(EXT2_TARGET))
|
||||||
# Use fakeroot so genext2fs believes the previous fakery
|
# Use fakeroot so genext2fs believes the previous fakery
|
||||||
ifeq ($(strip $(BR2_TARGET_ROOTFS_EXT2_BLOCKS)),0)
|
ifeq ($(strip $(BR2_TARGET_ROOTFS_EXT2_BLOCKS)),0)
|
||||||
GENEXT2_REALSIZE=`LANG=C du -l -s -c -k $(TARGET_DIR) | grep total | sed -e "s/total//"`; \
|
GENEXT2_REALSIZE=`LANG=C du -l -s -c -k $(TARGET_DIR) | grep total | sed -e "s/total//"`; \
|
||||||
@ -90,14 +90,14 @@ ifeq ($(strip $(BR2_TARGET_ROOTFS_EXT2_BLOCKS)),0)
|
|||||||
set -x; \
|
set -x; \
|
||||||
echo "$(GENEXT2_DIR)/genext2fs -b $$GENEXT2_SIZE " \
|
echo "$(GENEXT2_DIR)/genext2fs -b $$GENEXT2_SIZE " \
|
||||||
"-i $$GENEXT2_INODES -d $(TARGET_DIR) " \
|
"-i $$GENEXT2_INODES -d $(TARGET_DIR) " \
|
||||||
"$(EXT2_OPTS) $(EXT2_BASE)" >> $(STAGING_DIR)/_fakeroot.$(notdir $EXT2_TARGET)
|
"$(EXT2_OPTS) $(EXT2_BASE)" >> $(STAGING_DIR)/_fakeroot.$(notdir $(EXT2_TARGET))
|
||||||
else
|
else
|
||||||
echo "$(GENEXT2_DIR)/genext2fs -d $(TARGET_DIR) " \
|
echo "$(GENEXT2_DIR)/genext2fs -d $(TARGET_DIR) " \
|
||||||
"$(EXT2_OPTS) $(EXT2_BASE)" >> $(STAGING_DIR)/_fakeroot.$(notdir $EXT2_TARGET)
|
"$(EXT2_OPTS) $(EXT2_BASE)" >> $(STAGING_DIR)/_fakeroot.$(notdir $(EXT2_TARGET))
|
||||||
endif
|
endif
|
||||||
chmod a+x $(STAGING_DIR)/_fakeroot.$(notdir $EXT2_TARGET)
|
chmod a+x $(STAGING_DIR)/_fakeroot.$(notdir $(EXT2_TARGET))
|
||||||
$(STAGING_DIR)/usr/bin/fakeroot -- $(STAGING_DIR)/_fakeroot.$(notdir $EXT2_TARGET)
|
$(STAGING_DIR)/usr/bin/fakeroot -- $(STAGING_DIR)/_fakeroot.$(notdir $(EXT2_TARGET))
|
||||||
-@rm -f $(STAGING_DIR)/_fakeroot.$(notdir $EXT2_TARGET)
|
-@rm -f $(STAGING_DIR)/_fakeroot.$(notdir $(EXT2_TARGET))
|
||||||
|
|
||||||
$(EXT2_BASE).gz: $(EXT2_BASE)
|
$(EXT2_BASE).gz: $(EXT2_BASE)
|
||||||
@gzip --best -fv $(EXT2_BASE)
|
@gzip --best -fv $(EXT2_BASE)
|
||||||
|
@ -60,17 +60,17 @@ $(ISO9660_TARGET): host-fakeroot $(EXT2_TARGET) grub mkisofs
|
|||||||
cp $(LINUX_KERNEL) $(ISO9660_TARGET_DIR)/kernel
|
cp $(LINUX_KERNEL) $(ISO9660_TARGET_DIR)/kernel
|
||||||
cp $(EXT2_TARGET) $(ISO9660_TARGET_DIR)/initrd
|
cp $(EXT2_TARGET) $(ISO9660_TARGET_DIR)/initrd
|
||||||
# Use fakeroot to pretend all target binaries are owned by root
|
# Use fakeroot to pretend all target binaries are owned by root
|
||||||
rm -f $(STAGING_DIR)/_fakeroot.$(notdir $ISO9660_TARGET)
|
rm -f $(STAGING_DIR)/_fakeroot.$(notdir $(ISO9660_TARGET))
|
||||||
touch $(STAGING_DIR)/.fakeroot.00000
|
touch $(STAGING_DIR)/.fakeroot.00000
|
||||||
cat $(STAGING_DIR)/.fakeroot* > $(STAGING_DIR)/_fakeroot.$(notdir $ISO9660_TARGET)
|
cat $(STAGING_DIR)/.fakeroot* > $(STAGING_DIR)/_fakeroot.$(notdir $(ISO9660_TARGET))
|
||||||
echo "chown -R root:root $(ISO9660_TARGET_DIR)" >> $(STAGING_DIR)/_fakeroot.$(notdir $ISO9660_TARGET)
|
echo "chown -R root:root $(ISO9660_TARGET_DIR)" >> $(STAGING_DIR)/_fakeroot.$(notdir $(ISO9660_TARGET))
|
||||||
# Use fakeroot so mkisofs believes the previous fakery
|
# Use fakeroot so mkisofs believes the previous fakery
|
||||||
echo "$(MKISOFS_TARGET) -R -b boot/grub/stage2_eltorito -no-emul-boot " \
|
echo "$(MKISOFS_TARGET) -R -b boot/grub/stage2_eltorito -no-emul-boot " \
|
||||||
"-boot-load-size 4 -boot-info-table -o $(ISO9660_TARGET) $(ISO9660_TARGET_DIR)" \
|
"-boot-load-size 4 -boot-info-table -o $(ISO9660_TARGET) $(ISO9660_TARGET_DIR)" \
|
||||||
>> $(STAGING_DIR)/_fakeroot.$(notdir $ISO9660_TARGET)
|
>> $(STAGING_DIR)/_fakeroot.$(notdir $(ISO9660_TARGET))
|
||||||
chmod a+x $(STAGING_DIR)/_fakeroot.$(notdir $ISO9660_TARGET)
|
chmod a+x $(STAGING_DIR)/_fakeroot.$(notdir $(ISO9660_TARGET))
|
||||||
$(STAGING_DIR)/usr/bin/fakeroot -- $(STAGING_DIR)/_fakeroot.$(notdir $ISO9660_TARGET)
|
$(STAGING_DIR)/usr/bin/fakeroot -- $(STAGING_DIR)/_fakeroot.$(notdir $(ISO9660_TARGET))
|
||||||
-@rm -f $(STAGING_DIR)/_fakeroot.$(notdir $ISO9660_TARGET)
|
-@rm -f $(STAGING_DIR)/_fakeroot.$(notdir $(ISO9660_TARGET))
|
||||||
|
|
||||||
iso9660root: $(ISO9660_TARGET)
|
iso9660root: $(ISO9660_TARGET)
|
||||||
echo $(ISO9660_TARGET)
|
echo $(ISO9660_TARGET)
|
||||||
|
@ -45,19 +45,19 @@ $(JFFS2_TARGET): host-fakeroot makedevs mtd-host
|
|||||||
@rm -rf $(TARGET_DIR)/usr/info
|
@rm -rf $(TARGET_DIR)/usr/info
|
||||||
-/sbin/ldconfig -r $(TARGET_DIR) 2>/dev/null
|
-/sbin/ldconfig -r $(TARGET_DIR) 2>/dev/null
|
||||||
# Use fakeroot to pretend all target binaries are owned by root
|
# Use fakeroot to pretend all target binaries are owned by root
|
||||||
rm -f $(STAGING_DIR)/_fakeroot.$(notdir $JFFS2_TARGET)
|
rm -f $(STAGING_DIR)/_fakeroot.$(notdir $(JFFS2_TARGET))
|
||||||
touch $(STAGING_DIR)/.fakeroot.00000
|
touch $(STAGING_DIR)/.fakeroot.00000
|
||||||
cat $(STAGING_DIR)/.fakeroot* > $(STAGING_DIR)/_fakeroot.$(notdir $JFFS2_TARGET)
|
cat $(STAGING_DIR)/.fakeroot* > $(STAGING_DIR)/_fakeroot.$(notdir $(JFFS2_TARGET))
|
||||||
echo "chown -R root:root $(TARGET_DIR)" >> $(STAGING_DIR)/_fakeroot.$(notdir $JFFS2_TARGET)
|
echo "chown -R root:root $(TARGET_DIR)" >> $(STAGING_DIR)/_fakeroot.$(notdir $(JFFS2_TARGET))
|
||||||
# Use fakeroot to pretend to create all needed device nodes
|
# Use fakeroot to pretend to create all needed device nodes
|
||||||
echo "$(STAGING_DIR)/bin/makedevs -d $(TARGET_DEVICE_TABLE) $(TARGET_DIR)" \
|
echo "$(STAGING_DIR)/bin/makedevs -d $(TARGET_DEVICE_TABLE) $(TARGET_DIR)" \
|
||||||
>> $(STAGING_DIR)/_fakeroot.$(notdir $JFFS2_TARGET)
|
>> $(STAGING_DIR)/_fakeroot.$(notdir $(JFFS2_TARGET))
|
||||||
# Use fakeroot so mkfs.jffs2 believes the previous fakery
|
# Use fakeroot so mkfs.jffs2 believes the previous fakery
|
||||||
echo "$(MKFS_JFFS2) $(JFFS2_OPTS) -d $(BUILD_DIR)/root -o $(JFFS2_TARGET)" \
|
echo "$(MKFS_JFFS2) $(JFFS2_OPTS) -d $(BUILD_DIR)/root -o $(JFFS2_TARGET)" \
|
||||||
>> $(STAGING_DIR)/_fakeroot.$(notdir $JFFS2_TARGET)
|
>> $(STAGING_DIR)/_fakeroot.$(notdir $(JFFS2_TARGET))
|
||||||
chmod a+x $(STAGING_DIR)/_fakeroot.$(notdir $JFFS2_TARGET)
|
chmod a+x $(STAGING_DIR)/_fakeroot.$(notdir $(JFFS2_TARGET))
|
||||||
$(STAGING_DIR)/usr/bin/fakeroot -- $(STAGING_DIR)/_fakeroot.$(notdir $JFFS2_TARGET)
|
$(STAGING_DIR)/usr/bin/fakeroot -- $(STAGING_DIR)/_fakeroot.$(notdir $(JFFS2_TARGET))
|
||||||
-@rm -f $(STAGING_DIR)/_fakeroot.$(notdir $JFFS2_TARGET)
|
-@rm -f $(STAGING_DIR)/_fakeroot.$(notdir $(JFFS2_TARGET))
|
||||||
@ls -l $(JFFS2_TARGET)
|
@ls -l $(JFFS2_TARGET)
|
||||||
|
|
||||||
JFFS2_COPYTO := $(strip $(subst ",,$(BR2_TARGET_ROOTFS_JFFS2_COPYTO)))
|
JFFS2_COPYTO := $(strip $(subst ",,$(BR2_TARGET_ROOTFS_JFFS2_COPYTO)))
|
||||||
|
@ -61,21 +61,21 @@ squashfsroot: host-fakeroot makedevs squashfs
|
|||||||
@rm -rf $(TARGET_DIR)/usr/info
|
@rm -rf $(TARGET_DIR)/usr/info
|
||||||
-/sbin/ldconfig -r $(TARGET_DIR) 2>/dev/null
|
-/sbin/ldconfig -r $(TARGET_DIR) 2>/dev/null
|
||||||
# Use fakeroot to pretend all target binaries are owned by root
|
# Use fakeroot to pretend all target binaries are owned by root
|
||||||
rm -f $(STAGING_DIR)/_fakeroot.$(notdir $SQUASHFS_TARGET)
|
rm -f $(STAGING_DIR)/_fakeroot.$(notdir $(SQUASHFS_TARGET))
|
||||||
touch $(STAGING_DIR)/.fakeroot.00000
|
touch $(STAGING_DIR)/.fakeroot.00000
|
||||||
cat $(STAGING_DIR)/.fakeroot* > $(STAGING_DIR)/_fakeroot.$(notdir $SQUASHFS_TARGET)
|
cat $(STAGING_DIR)/.fakeroot* > $(STAGING_DIR)/_fakeroot.$(notdir $(SQUASHFS_TARGET))
|
||||||
echo "chown -R root:root $(TARGET_DIR)" >> $(STAGING_DIR)/_fakeroot.$(notdir $SQUASHFS_TARGET)
|
echo "chown -R root:root $(TARGET_DIR)" >> $(STAGING_DIR)/_fakeroot.$(notdir $(SQUASHFS_TARGET))
|
||||||
# Use fakeroot to pretend to create all needed device nodes
|
# Use fakeroot to pretend to create all needed device nodes
|
||||||
echo "$(STAGING_DIR)/bin/makedevs -d $(TARGET_DEVICE_TABLE) $(TARGET_DIR)" \
|
echo "$(STAGING_DIR)/bin/makedevs -d $(TARGET_DEVICE_TABLE) $(TARGET_DIR)" \
|
||||||
>> $(STAGING_DIR)/_fakeroot.$(notdir $SQUASHFS_TARGET)
|
>> $(STAGING_DIR)/_fakeroot.$(notdir $(SQUASHFS_TARGET))
|
||||||
# Use fakeroot so mksquashfs believes the previous fakery
|
# Use fakeroot so mksquashfs believes the previous fakery
|
||||||
echo "$(SQUASHFS_DIR)/squashfs-tools/mksquashfs " \
|
echo "$(SQUASHFS_DIR)/squashfs-tools/mksquashfs " \
|
||||||
"$(TARGET_DIR) $(SQUASHFS_TARGET) " \
|
"$(TARGET_DIR) $(SQUASHFS_TARGET) " \
|
||||||
"-noappend $(SQUASHFS_ENDIANNESS)" \
|
"-noappend $(SQUASHFS_ENDIANNESS)" \
|
||||||
>> $(STAGING_DIR)/_fakeroot.$(notdir $SQUASHFS_TARGET)
|
>> $(STAGING_DIR)/_fakeroot.$(notdir $(SQUASHFS_TARGET))
|
||||||
chmod a+x $(STAGING_DIR)/_fakeroot.$(notdir $SQUASHFS_TARGET)
|
chmod a+x $(STAGING_DIR)/_fakeroot.$(notdir $(SQUASHFS_TARGET))
|
||||||
$(STAGING_DIR)/usr/bin/fakeroot -- $(STAGING_DIR)/_fakeroot.$(notdir $SQUASHFS_TARGET)
|
$(STAGING_DIR)/usr/bin/fakeroot -- $(STAGING_DIR)/_fakeroot.$(notdir $(SQUASHFS_TARGET))
|
||||||
-@rm -f $(STAGING_DIR)/_fakeroot.$(notdir $SQUASHFS_TARGET)
|
-@rm -f $(STAGING_DIR)/_fakeroot.$(notdir $(SQUASHFS_TARGET))
|
||||||
|
|
||||||
squashfsroot-source: squashfs-source
|
squashfsroot-source: squashfs-source
|
||||||
|
|
||||||
|
@ -13,19 +13,19 @@ tarroot: host-fakeroot makedevs
|
|||||||
@rm -rf $(TARGET_DIR)/usr/info
|
@rm -rf $(TARGET_DIR)/usr/info
|
||||||
-/sbin/ldconfig -r $(TARGET_DIR) 2>/dev/null
|
-/sbin/ldconfig -r $(TARGET_DIR) 2>/dev/null
|
||||||
# Use fakeroot to pretend all target binaries are owned by root
|
# Use fakeroot to pretend all target binaries are owned by root
|
||||||
rm -f $(STAGING_DIR)/_fakeroot.$(notdir $TAR_TARGET)
|
rm -f $(STAGING_DIR)/_fakeroot.$(notdir $(TAR_TARGET))
|
||||||
touch $(STAGING_DIR)/.fakeroot.00000
|
touch $(STAGING_DIR)/.fakeroot.00000
|
||||||
cat $(STAGING_DIR)/.fakeroot* > $(STAGING_DIR)/_fakeroot.$(notdir $TAR_TARGET)
|
cat $(STAGING_DIR)/.fakeroot* > $(STAGING_DIR)/_fakeroot.$(notdir $(TAR_TARGET))
|
||||||
echo "chown -R root:root $(TARGET_DIR)" >> $(STAGING_DIR)/_fakeroot.$(notdir $TAR_TARGET)
|
echo "chown -R root:root $(TARGET_DIR)" >> $(STAGING_DIR)/_fakeroot.$(notdir $(TAR_TARGET))
|
||||||
# Use fakeroot to pretend to create all needed device nodes
|
# Use fakeroot to pretend to create all needed device nodes
|
||||||
echo "$(STAGING_DIR)/bin/makedevs -d $(TARGET_DEVICE_TABLE) $(TARGET_DIR)" \
|
echo "$(STAGING_DIR)/bin/makedevs -d $(TARGET_DEVICE_TABLE) $(TARGET_DIR)" \
|
||||||
>> $(STAGING_DIR)/_fakeroot.$(notdir $TAR_TARGET)
|
>> $(STAGING_DIR)/_fakeroot.$(notdir $(TAR_TARGET))
|
||||||
# Use fakeroot so tar believes the previous fakery
|
# Use fakeroot so tar believes the previous fakery
|
||||||
echo "tar -c$(TAR_OPTS)f $(TAR_TARGET) -C $(TARGET_DIR) ." \
|
echo "tar -c$(TAR_OPTS)f $(TAR_TARGET) -C $(TARGET_DIR) ." \
|
||||||
>> $(STAGING_DIR)/_fakeroot.$(notdir $TAR_TARGET)
|
>> $(STAGING_DIR)/_fakeroot.$(notdir $(TAR_TARGET))
|
||||||
chmod a+x $(STAGING_DIR)/_fakeroot.$(notdir $TAR_TARGET)
|
chmod a+x $(STAGING_DIR)/_fakeroot.$(notdir $(TAR_TARGET))
|
||||||
$(STAGING_DIR)/usr/bin/fakeroot -- $(STAGING_DIR)/_fakeroot.$(notdir $TAR_TARGET)
|
$(STAGING_DIR)/usr/bin/fakeroot -- $(STAGING_DIR)/_fakeroot.$(notdir $(TAR_TARGET))
|
||||||
-@rm -f $(STAGING_DIR)/_fakeroot.$(notdir $TAR_TARGET)
|
-@rm -f $(STAGING_DIR)/_fakeroot.$(notdir $(TAR_TARGET))
|
||||||
|
|
||||||
tarroot-source:
|
tarroot-source:
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user