Просмотр исходного кода

hw/gpio/meson: Introduce dedicated config switch for hw/gpio/mpc8xxx

Having a dedicated config switch makes dependency handling cleaner.

Signed-off-by: Bernhard Beschow <shentey@gmail.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20221003203142.24355-3-shentey@gmail.com>
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Bernhard Beschow 2 лет назад
Родитель
Сommit
2c860abfb6
3 измененных файлов с 5 добавлено и 1 удалено
  1. 3 0
      hw/gpio/Kconfig
  2. 1 1
      hw/gpio/meson.build
  3. 1 0
      hw/ppc/Kconfig

+ 3 - 0
hw/gpio/Kconfig

@@ -8,6 +8,9 @@ config PL061
 config GPIO_KEY
 config GPIO_KEY
     bool
     bool
 
 
+config GPIO_MPC8XXX
+    bool
+
 config GPIO_PWR
 config GPIO_PWR
     bool
     bool
 
 

+ 1 - 1
hw/gpio/meson.build

@@ -1,5 +1,5 @@
-softmmu_ss.add(when: 'CONFIG_E500', if_true: files('mpc8xxx.c'))
 softmmu_ss.add(when: 'CONFIG_GPIO_KEY', if_true: files('gpio_key.c'))
 softmmu_ss.add(when: 'CONFIG_GPIO_KEY', if_true: files('gpio_key.c'))
+softmmu_ss.add(when: 'CONFIG_GPIO_MPC8XXX', if_true: files('mpc8xxx.c'))
 softmmu_ss.add(when: 'CONFIG_GPIO_PWR', if_true: files('gpio_pwr.c'))
 softmmu_ss.add(when: 'CONFIG_GPIO_PWR', if_true: files('gpio_pwr.c'))
 softmmu_ss.add(when: 'CONFIG_MAX7310', if_true: files('max7310.c'))
 softmmu_ss.add(when: 'CONFIG_MAX7310', if_true: files('max7310.c'))
 softmmu_ss.add(when: 'CONFIG_PL061', if_true: files('pl061.c'))
 softmmu_ss.add(when: 'CONFIG_PL061', if_true: files('pl061.c'))

+ 1 - 0
hw/ppc/Kconfig

@@ -124,6 +124,7 @@ config E500
     imply AT24C
     imply AT24C
     imply VIRTIO_PCI
     imply VIRTIO_PCI
     select ETSEC
     select ETSEC
+    select GPIO_MPC8XXX
     select OPENPIC
     select OPENPIC
     select PLATFORM_BUS
     select PLATFORM_BUS
     select PPCE500_PCI
     select PPCE500_PCI