Skip to content

Commit

Permalink
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions buildroot/package/hifiberry-test/Config.in
Original file line number Diff line number Diff line change
@@ -9,6 +9,8 @@ config BR2_PACKAGE_HIFIBERRY_TEST

choice
prompt "Card to test"
config HIFIBERRY_TEST_NONE
bool "None - just copy flash tools"
config HIFIBERRY_TEST_AMP2
bool "Amp2"
config HIFIBERRY_TEST_DACRTC
3 changes: 3 additions & 0 deletions buildroot/package/hifiberry-test/hifiberry-test.mk
Original file line number Diff line number Diff line change
@@ -27,6 +27,8 @@ define HIFIBERRY_TEST_INSTALL_TARGET_CMDS
$(TARGET_DIR)/opt/hifiberry/contrib
$(INSTALL) -D -m 0700 $(BR2_EXTERNAL_HIFIBERRY_PATH)/package/hifiberry-test/eeprom/dtoverlay \
$(TARGET_DIR)/opt/hifiberry/contrib
$(INSTALL) -D -m 0700 $(BR2_EXTERNAL_HIFIBERRY_PATH)/package/hifiberry-test/flash.sh \
$(TARGET_DIR)/opt/hifiberry/contrib
endef


@@ -109,6 +111,7 @@ define HIFIBERRY_TEST_INSTALL_INIT_SYSV_USB
echo "dtparam=spi=on" >> $(BINARIES_DIR)/rpi-firmware/config.txt
endef


ifdef HIFIBERRY_TEST_AMP2
HIFIBERRY_TEST_POST_INSTALL_TARGET_HOOKS += HIFIBERRY_TEST_INSTALL_INIT_SYSV_AMP2
endif

0 comments on commit bb357d2

Please sign in to comment.