Skip to content

Commit

Permalink
chore(Makefile): add libiio/libserialport dependencies to systemd-ext…
Browse files Browse the repository at this point in the history
…ension
  • Loading branch information
ShadowApex committed Apr 5, 2024
1 parent f1d569f commit c047c23
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,24 @@ dist/$(NAME).raw: dist/$(NAME).tar.gz
echo ID=$(SYSEXT_ID) > $(CACHE_DIR)/$(NAME)/usr/lib/extension-release.d/extension-release.$(NAME)
echo VERSION_ID=$(SYSEXT_VERSION_ID) >> $(CACHE_DIR)/$(NAME)/usr/lib/extension-release.d/extension-release.$(NAME)

# Install libserialport in the extension for libiio compatibility in SteamOS
rm -rf $(CACHE_DIR)/libserialport*
wget https://archlinux.org/packages/extra/x86_64/libserialport/download/ \
-O $(CACHE_DIR)/libserialport.tar.zst
zstd -d $(CACHE_DIR)/libserialport.tar.zst
mkdir -p $(CACHE_DIR)/libserialport
tar xvf $(CACHE_DIR)/libserialport.tar -C $(CACHE_DIR)/libserialport
cp -r $(CACHE_DIR)/libserialport/usr/lib/libserialport* $(CACHE_DIR)/$(NAME)/usr/lib

@# Install libiio in the extension for SteamOS compatibility
rm -rf $(CACHE_DIR)/libiio*
wget https://archlinux.org/packages/extra/x86_64/libiio/download/ \
-O $(CACHE_DIR)/libiio.tar.zst
zstd -d $(CACHE_DIR)/libiio.tar.zst
mkdir -p $(CACHE_DIR)/libiio
tar xvf $(CACHE_DIR)/libiio.tar -C $(CACHE_DIR)/libiio
cp -r $(CACHE_DIR)/libiio/usr/lib/libiio* $(CACHE_DIR)/$(NAME)/usr/lib

@# Build the extension archive
cd $(CACHE_DIR) && mksquashfs $(NAME) $(NAME).raw
rm -rf $(CACHE_DIR)/$(NAME)
Expand Down

0 comments on commit c047c23

Please sign in to comment.