File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -143,6 +143,8 @@ DEBIAN_PACKAGES = libc6 libc6-dev libgcc-12-dev linux-libc-dev
143143ROOTFS_TMP = $(ROOTFS_DIR ) /.tmp
144144PACKAGES_FILE = $(ROOTFS_TMP ) /Packages.xz
145145
146+ .INTERMEDIATE : $(PACKAGES_FILE )
147+
146148$(ROOTFS_DIR ) /.sysroot_ready : $(PACKAGES_FILE )
147149 @echo " Extracting Debian packages to $( ROOTFS_DIR) ..."
148150 @for pkg in $(DEBIAN_PACKAGES ) ; do \
@@ -155,7 +157,7 @@ $(ROOTFS_DIR)/.sysroot_ready: $(PACKAGES_FILE)
155157 fi ; \
156158 cd $(ROOTFS_TMP ) && ar x " $$ DEB_NAME" && cd ../..; \
157159 tar xf $(ROOTFS_TMP ) /data.tar.* -C $(ROOTFS_DIR ) ; \
158- rm -f $(ROOTFS_TMP ) /data.tar.* $(ROOTFS_TMP ) /control.tar.* $(ROOTFS_TMP ) /debian-binary; \
160+ rm -f $(ROOTFS_TMP ) /* .deb $( ROOTFS_TMP ) / data.tar.* $(ROOTFS_TMP ) /control.tar.* $(ROOTFS_TMP ) /debian-binary; \
159161 done
160162 @touch $@
161163
@@ -164,7 +166,6 @@ $(PACKAGES_FILE):
164166 @mkdir -p $(ROOTFS_TMP )
165167 @curl -fL -o $@ https://deb.debian.org/debian/dists/$(DEBIAN_DIST ) /main/binary-$(ARCH ) /Packages.xz
166168
167- .PHONY : clean-sysroot
168169clean-sysroot :
169170 rm -rf $(ROOTFS_DIR )
170171
You can’t perform that action at this time.
0 commit comments